do not extract preview while updating cover

This commit is contained in:
j 2016-01-19 21:45:32 +05:30
parent a5fd6a3d09
commit 4d37ef2821

View file

@ -304,7 +304,7 @@ class Item(db.Model):
self.update(modified)
self.save()
if 'cover' in record:
self.update_icons()
self.update_cover()
user = state.user()
if record and user in self.users:
Changelog.record_ts(user, modified, 'edititem', self.id, record)
@ -358,7 +358,7 @@ class Item(db.Model):
if record and user in self.users:
Changelog.record_ts(user, self.modified, 'edititem', self.id, record)
if 'cover' in record:
self.update_icons()
self.update_cover()
def extract_preview(self):
path = self.get_path()