From 24589f2160504f2022e90f6c226e6ba9ea4f0992 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sat, 9 Oct 2010 19:25:55 +0200 Subject: removed debug prints --- module/FileDatabase.py | 9 +++------ 1 file 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 #---------------------------------------------------------------------- -- cgit v1.2.3