diff options
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-x | pyLoadCore.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py index def3d4df5..60bfdc660 100755 --- a/pyLoadCore.py +++ b/pyLoadCore.py @@ -695,6 +695,10 @@ class ServerMethods(): """put package back to collector""" self.core.files.setPackageLocation(pid, 0) + def move_package(self, dest, pid): + if dest not in (0,1): return + self.core.files.setPackageLocation(pid, dest) + def is_captcha_waiting(self): self.core.lastClientConnected = time.time() task = self.core.captchaManager.getTask() @@ -744,6 +748,9 @@ class ServerMethods(): def order_package(self, id, pos): self.core.files.reorderPackage(id, pos) + def order_file(self, id, pos): + self.core.files.reorderFile(id, pos) + def is_time_download(self): start = self.core.config['downloadTime']['start'].split(":") end = self.core.config['downloadTime']['end'].split(":") |