keep pages from file

This commit is contained in:
j 2016-01-16 11:26:03 +05:30
parent d876768771
commit b21d216d8c

View file

@ -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,7 +363,8 @@ class Item(db.Model):
if key in self.info:
if key not in self.meta:
self.meta[key] = self.info[key]
del self.info[key]
if key != 'pages':
del self.info[key]
#FIXME get from user_meta
if state.online: