summaryrefslogtreecommitdiffstats
path: root/module/FileDatabase.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/FileDatabase.py')
-rw-r--r--module/FileDatabase.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/module/FileDatabase.py b/module/FileDatabase.py
index 9e1e84e8c..d4f28d887 100644
--- a/module/FileDatabase.py
+++ b/module/FileDatabase.py
@@ -261,7 +261,9 @@ class FileHandler:
data = self.db.getPackageData(id)
tmplist = []
- for x in self.cache.itervalues():
+
+ cache = self.cache.values()
+ for x in cache:
if int(x.toDbDict()[x.id]["package"]) == int(id):
tmplist.append((str(x.id), x.toDbDict()[x.id]))
data.update(tmplist)
@@ -801,8 +803,7 @@ class FileDatabaseBackend(Thread):
"""return pyfile instance, which is suitable for download and dont use a occupied plugin"""
cmd = "("
- i = 0
- for item in occ:
+ for i, item in enumerate(occ):
if i != 0: cmd += ", "
cmd += "'%s'" % item
@@ -922,7 +923,7 @@ class PyFile():
if self.plugin and self.plugin.req: self.plugin.req.abort = True
sleep(0.1)
- abort = False
+ self.abort = False
if self.plugin and self.plugin.req: self.plugin.req.abort = False
def finishIfDone(self):