diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-08-02 19:43:43 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-08-02 19:43:43 +0200 |
commit | 0606f336d08a65651420ec6283680f210aab0f44 (patch) | |
tree | 66ea35e9239d3184b529f4d8faac305fccb365c7 /module/database | |
parent | fix db (diff) | |
download | pyload-0606f336d08a65651420ec6283680f210aab0f44.tar.xz |
api fix
Diffstat (limited to 'module/database')
-rw-r--r-- | module/database/FileDatabase.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/module/database/FileDatabase.py b/module/database/FileDatabase.py index 70f814c51..d93fa6da4 100644 --- a/module/database/FileDatabase.py +++ b/module/database/FileDatabase.py @@ -96,7 +96,10 @@ class FileHandler: packs = self.db.getAllPackages(queue) data.update([(x.id, x.toDbDict()[x.id]) for x in self.cache.values()]) - packs.update([(x.id, x.toDict()[x.id]) for x in self.packageCache.values() if x.queue == queue]) + + for x in self.packageCache.itervalues(): + if x.queue != queue or x.id not in packs: continue + packs[x.id].update(x.toDict()[x.id]) for key, value in data.iteritems(): if value["package"] in packs: |