diff options
author | mkaay <mkaay@mkaay.de> | 2011-03-13 21:21:44 +0100 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2011-03-13 21:21:44 +0100 |
commit | a2990617833baab37f39d0fe5f877849643e4738 (patch) | |
tree | 2304c8f7380f4a688f471d83378bfec07b1256a2 /pyLoadCore.py | |
parent | make sure everything is written to disk before merging (diff) | |
download | pyload-a2990617833baab37f39d0fe5f877849643e4738.tar.xz |
captcha fix
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() |