diff options
Diffstat (limited to 'module/CaptchaManager.py')
-rw-r--r-- | module/CaptchaManager.py | 4 |
1 files changed, 2 insertions, 2 deletions
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 |