keep pages from file
This commit is contained in:
parent
d876768771
commit
b21d216d8c
1 changed files with 4 additions and 2 deletions
|
@ -122,8 +122,9 @@ class Item(db.Model):
|
|||
#j['users'] = list(map(str, list(self.users)))
|
||||
|
||||
if self.info:
|
||||
meta_keys = [k for k in self.meta_keys if k != 'pages']
|
||||
for key in self.info:
|
||||
if (not keys or key in keys) and key not in self.meta_keys:
|
||||
if (not keys or key in keys) and key not in meta_keys:
|
||||
j[key] = self.info[key]
|
||||
|
||||
if self.meta:
|
||||
|
@ -362,6 +363,7 @@ class Item(db.Model):
|
|||
if key in self.info:
|
||||
if key not in self.meta:
|
||||
self.meta[key] = self.info[key]
|
||||
if key != 'pages':
|
||||
del self.info[key]
|
||||
|
||||
#FIXME get from user_meta
|
||||
|
|
Loading…
Reference in a new issue