update models.py
This commit is contained in:
parent
a6f34a0e3a
commit
043abbd27c
1 changed files with 3 additions and 0 deletions
|
@ -116,6 +116,9 @@ class Item(db.Model):
|
|||
for k in list(j):
|
||||
if k not in keys:
|
||||
del j[k]
|
||||
for key in [k['id'] for k in settings.config['itemKeys'] if isinstance(k['type'], list)]:
|
||||
if key in j and not isinstance(j[key], list):
|
||||
j[key] = [j[key]]
|
||||
return j
|
||||
|
||||
def get_path(self):
|
||||
|
|
Loading…
Reference in a new issue