[Sync] Image id updated

This commit is contained in:
Roman Timashev committed 2017-10-28 19:24:54 +03:00
1 parent 31a345b182
commit 5bb2f0dc15
2 files changed
+1 -6

No files matched your search

+1 -2
View File
@@ -148,8 +148,7 @@ class Image(Model):
return os.path.basename(self.file)
def __get_id(self):
filename = os.path.basename(self.file)
return url_encode_text(filename)
return md5(self.file)
def __get_hash(self):
file_hash = self.provider.hash(self.file)