[Sync] Article hashing updating: adding preview file to hash
This commit is contained in:
1 parent
cb60bc5548
commit
c8868273d7
1 file changed
+2
@@ -133,6 +133,8 @@ class Article(Model):
|
|||||||
def __set_hash(self):
|
def __set_hash(self):
|
||||||
f = self.params['folder']
|
f = self.params['folder']
|
||||||
images = sorted(self.params['images'])
|
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 = [os.path.join(f, i) for i in images]
|
||||||
images = [self.provider.hash(i) for i in images]
|
images = [self.provider.hash(i) for i in images]
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user