remove unknown ids from lists
This commit is contained in:
parent
b12e61c5b4
commit
10e651067c
3 changed files with 17 additions and 3 deletions
|
|
@ -132,7 +132,7 @@ class User(db.Model):
|
|||
'type': 'library'
|
||||
})
|
||||
index = 0
|
||||
for name in peer.info['listorder']:
|
||||
for name in peer.info.get('listorder', peer.info.get('lists', []).keys()):
|
||||
lists.append({
|
||||
'id': '%s:%s' % (self.nickname, name),
|
||||
'user': self.name,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue