only add items to list once they are available
This commit is contained in:
parent
10e651067c
commit
83ceb5b63f
3 changed files with 25 additions and 18 deletions
|
|
@ -533,6 +533,9 @@ class Item(db.Model):
|
|||
self.added = datetime.utcnow()
|
||||
Changelog.record(u, 'additem', self.id, f.info)
|
||||
Changelog.record(u, 'edititem', self.id, self.meta)
|
||||
for l in self.lists.filter_by(user_id=settings.USER_ID):
|
||||
if l.name != '':
|
||||
Changelog.record(l.user, 'addlistitems', l.name, [self.id])
|
||||
self.update()
|
||||
f.move()
|
||||
self.update_icons()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue