summaryrefslogtreecommitdiffstats
path: root/module/FileDatabase.py
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2010-08-05 00:31:36 +0200
committerGravatar mkaay <mkaay@mkaay.de> 2010-08-05 00:31:36 +0200
commitf08de5a2f377134fcbfe95cc28b5030f3d834da5 (patch)
treeb588f136c31e5feb8e8b92809fc81c6e563a3b82 /module/FileDatabase.py
parentgregy's great webif patch for chrome (diff)
downloadpyload-f08de5a2f377134fcbfe95cc28b5030f3d834da5.tar.xz
fix for gui
Diffstat (limited to 'module/FileDatabase.py')
-rw-r--r--module/FileDatabase.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/FileDatabase.py b/module/FileDatabase.py
index 18c371ae8..fe1bb9f8f 100644
--- a/module/FileDatabase.py
+++ b/module/FileDatabase.py
@@ -337,14 +337,14 @@ class FileHandler:
self.core.pullManager.addEvent(e)
@change
- def pushPackageToQueue(self, id):
+ def setPackageLocation(self, id, queue):
"""push package to queue"""
pack = self.db.getPackage(id)
e = RemoveEvent("pack", id, "collector" if not pack.queue else "queue")
self.core.pullManager.addEvent(e)
- pack.queue = 1
+ pack.queue = queue
self.db.updatePackage(pack)
e = InsertEvent("pack", id, -1, "collector" if not pack.queue else "queue")