From e0857fc00db8c57528fc2bf4b2d263367ff2ff40 Mon Sep 17 00:00:00 2001 From: j Date: Thu, 7 Jan 2016 10:09:27 +0530 Subject: [PATCH] fix import --- oml/setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/oml/setup.py b/oml/setup.py index f30911a..98bbc9d 100644 --- a/oml/setup.py +++ b/oml/setup.py @@ -263,9 +263,9 @@ def upgrade_db(old, new=None): u.clear_list_cache() l.items_count() session.commit() - if old <= '20160107-507-16c9807': + if old <= '20160107-508-a0c1970': 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): l.remove()