From a2990617833baab37f39d0fe5f877849643e4738 Mon Sep 17 00:00:00 2001 From: mkaay Date: Sun, 13 Mar 2011 21:21:44 +0100 Subject: captcha fix --- module/CaptchaManager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'module/CaptchaManager.py') diff --git a/module/CaptchaManager.py b/module/CaptchaManager.py index 7672aa645..7bb98dde9 100644 --- a/module/CaptchaManager.py +++ b/module/CaptchaManager.py @@ -52,7 +52,7 @@ class CaptchaManager(): def getTaskByID(self, tid): self.lock.acquire() for task in self.tasks: - if task.id == str(tid): #task ids are strings + if task.id == tid: self.lock.release() return task self.lock.release() @@ -82,7 +82,7 @@ class CaptchaManager(): class CaptchaTask(): def __init__(self, id, img, type, temp): - self.id = str(id) + self.id = id self.captchaImg = img self.captchaType = type self.captchaFile = temp -- cgit v1.2.3