its an inbox
This commit is contained in:
parent
b1215fbc1b
commit
aac3e66f7b
8 changed files with 58 additions and 54 deletions
|
|
@ -217,7 +217,7 @@ class User(db.Model):
|
|||
Changelog.record(self, 'edititem', item.id, item.meta, _commit=False)
|
||||
lists = []
|
||||
for l in List.query.filter_by(user_id=self.id, type='static').order_by('index_'):
|
||||
if l.name:
|
||||
if l.name and l.name != 'Inbox':
|
||||
lists.append(l.name)
|
||||
Changelog.record(self, 'addlist', l.name, _commit=False)
|
||||
items = [i.id for i in l.get_items().options(load_only('id'))]
|
||||
|
|
@ -300,7 +300,7 @@ class List(db.Model):
|
|||
state.db.session.add(l)
|
||||
state.db.session.commit()
|
||||
if user_id == settings.USER_ID:
|
||||
if l.type == 'static' and name != '':
|
||||
if l.type == 'static' and name != '' and name != 'Inbox':
|
||||
add_record('addlist', l.name)
|
||||
return l
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue