commit after adding

This commit is contained in:
j 2016-02-15 16:59:58 +05:30
parent a96b55e006
commit acaeb203a1

View file

@ -336,7 +336,7 @@ class List(db.Model):
self.items.append(i) self.items.append(i)
if self.user_id == settings.USER_ID: if self.user_id == settings.USER_ID:
i.queue_download() i.queue_download()
i.update(commit=commit) i.update(commit=False)
if i.info['mediastate'] == 'available': if i.info['mediastate'] == 'available':
available_items.append(item_id) available_items.append(item_id)
state.db.session.add(self) state.db.session.add(self)