do not extract preview while updating cover
This commit is contained in:
parent
a5fd6a3d09
commit
4d37ef2821
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue