From a2990617833baab37f39d0fe5f877849643e4738 Mon Sep 17 00:00:00 2001 From: mkaay Date: Sun, 13 Mar 2011 21:21:44 +0100 Subject: captcha fix --- pyLoadCore.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'pyLoadCore.py') 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() -- cgit v1.2.3