[Sync] Article hashing updating: adding preview file to hash

This commit is contained in:
Roman Timashev committed 2017-10-15 12:54:38 +03:00
1 parent cb60bc5548
commit c8868273d7
1 file changed
+2
+2
View File
@@ -133,6 +133,8 @@ class Article(Model):
def __set_hash(self):
f = self.params['folder']
images = sorted(self.params['images'])
if self.has_param('preview'):
images.append(self.get_param('preview'))
images = [os.path.join(f, i) for i in images]
images = [self.provider.hash(i) for i in images]