performance
This commit is contained in:
parent
d451eb3063
commit
21d6324eb6
6 changed files with 47 additions and 74 deletions
|
|
@ -98,11 +98,9 @@ class PostUpdate(Command):
|
|||
changed = True
|
||||
if changed:
|
||||
f.save()
|
||||
if old <= '20140526-117-39ea043' and new > '20140526-117-39ea043':
|
||||
if old <= '20140526-118-d451eb3' and new > '20140526-118-d451eb3':
|
||||
import item.models
|
||||
for i in item.models.Item.query:
|
||||
i.update_lists()
|
||||
item.models.db.session.commit()
|
||||
item.models.Find.query.filter_by(key='list').delete()
|
||||
|
||||
class Setup(Command):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue