summaryrefslogtreecommitdiffstats
path: root/module/CaptchaManager.py
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2011-03-13 21:21:44 +0100
committerGravatar mkaay <mkaay@mkaay.de> 2011-03-13 21:21:44 +0100
commita2990617833baab37f39d0fe5f877849643e4738 (patch)
tree2304c8f7380f4a688f471d83378bfec07b1256a2 /module/CaptchaManager.py
parentmake sure everything is written to disk before merging (diff)
downloadpyload-a2990617833baab37f39d0fe5f877849643e4738.tar.xz
captcha fix
Diffstat (limited to 'module/CaptchaManager.py')
-rw-r--r--module/CaptchaManager.py4
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