fix import
This commit is contained in:
parent
a0c197026f
commit
e0857fc00d
1 changed files with 2 additions and 2 deletions
|
@ -263,9 +263,9 @@ def upgrade_db(old, new=None):
|
||||||
u.clear_list_cache()
|
u.clear_list_cache()
|
||||||
l.items_count()
|
l.items_count()
|
||||||
session.commit()
|
session.commit()
|
||||||
if old <= '20160107-507-16c9807':
|
if old <= '20160107-508-a0c1970':
|
||||||
with db.session() as session:
|
with db.session() as session:
|
||||||
for l in user.models.List.query.filter_by(name=' [2]'):
|
for l in List.query.filter_by(name=' [2]'):
|
||||||
if not len(l.items):
|
if not len(l.items):
|
||||||
l.remove()
|
l.remove()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue