diff options
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-x | pyLoadCore.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py index fc2ce8e29..dd05c9e99 100755 --- a/pyLoadCore.py +++ b/pyLoadCore.py @@ -759,15 +759,14 @@ class ServerMethods(): if task: task.setWatingForUser(exclusive=exclusive) c = task.getCaptcha() - return str(task.id), c[0], str(c[1]) + return int(task.id), c[0], str(c[1]) else: return None, None, None def get_task_status(self, tid): self.core.lastClientConnected = time() t = self.core.captchaManager.getTaskByID(tid) - if t: - return t.getStatus() + return t.getStatus() if t else "" def set_captcha_result(self, tid, result): self.core.lastClientConnected = time() |