Properly hash last 12 chars of filesize in client.py

This commit is contained in:
Etoh 2013-10-31 16:07:27 +00:00
parent 6216cc87d2
commit 260dbd3813

View File

@ -312,7 +312,7 @@ class SyncplayClient(object):
return hashlib.sha256(self.__stripfilename(filename)).hexdigest()[:12]
def __hashFilesize(self, size):
hashlib.sha256(str(size)).hexdigest()
return hashlib.sha256(str(size)).hexdigest()[:12]
def __executePrivacySettings(self, filename, size):
if (self._config['filenamePrivacyMode'] == PRIVACY_SENDHASHED_MODE):