turn library into list, list cache fixes

This commit is contained in:
j 2016-01-06 23:36:48 +05:30
commit bf2fc29b54
8 changed files with 86 additions and 51 deletions

View file

@ -168,7 +168,9 @@ def remove(data):
if 'ids' in data and data['ids']:
for i in models.Item.query.filter(models.Item.id.in_(data['ids'])):
i.remove_file()
state.user().clear_smart_list_cache()
u = state.user()
u.clear_smart_list_cache()
u.clear_list_cache()
return {
'items': []
}