avoid stale db sessoins in nodes thread
This commit is contained in:
parent
cf74e622be
commit
cf6d6acc5f
3 changed files with 64 additions and 80 deletions
|
|
@ -348,9 +348,10 @@ class Item(db.Model):
|
|||
load metadata from user_metadata or get via isbn?
|
||||
'''
|
||||
for key in self.meta_keys:
|
||||
if key not in self.meta and key in self.info:
|
||||
self.meta[key] = self.info[key]
|
||||
del self.info[key]
|
||||
if key in self.info:
|
||||
if key not in self.meta:
|
||||
self.meta[key] = self.info[key]
|
||||
del self.info[key]
|
||||
|
||||
#FIXME get from user_meta
|
||||
if state.online:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue