summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--module/FileDatabase.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/module/FileDatabase.py b/module/FileDatabase.py
index aab8c4342..57339a128 100644
--- a/module/FileDatabase.py
+++ b/module/FileDatabase.py
@@ -317,9 +317,6 @@ class FileHandler:
#@TODO clean mess
#@TODO improve selection of valid jobs
- from random import randint
- jid = randint(0,1000)
- print "Get file for downloading, id:", jid
if self.jobCache.has_key(occ):
if self.jobCache[occ]:
@@ -348,13 +345,13 @@ class FileHandler:
if not jobs:
self.jobCache[occ].append("empty")
pyfile = None
-
- pyfile = self.getFile(self.jobCache[occ].pop())
+ else:
+ pyfile = self.getFile(self.jobCache[occ].pop())
+
#@TODO: maybe the new job has to be approved...
#pyfile = self.getFile(self.jobCache[occ].pop())
- print jid, "going to download:", pyfile
return pyfile
#----------------------------------------------------------------------