more list cache removals (followup to bc593b65)
This commit is contained in:
parent
aa74a9fc43
commit
1875068a2f
3 changed files with 0 additions and 7 deletions
|
|
@ -327,14 +327,12 @@ def upgrade_db(old, new=None):
|
|||
if not i in l.items:
|
||||
l.items.append(i)
|
||||
session.add(l)
|
||||
u.clear_list_cache()
|
||||
for u in User.query.filter_by(peered=True):
|
||||
l = u.library
|
||||
for i in u.items.all():
|
||||
if not i in l.items:
|
||||
l.items.append(i)
|
||||
session.add(l)
|
||||
u.clear_list_cache()
|
||||
l.items_count()
|
||||
session.commit()
|
||||
if old <= '20160107-508-a0c1970':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue