diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-03-13 22:30:56 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-03-13 22:30:56 +0100 |
commit | 94b7ed15d217a61f2102be326aa28509f3e379b5 (patch) | |
tree | beed961f31d3db9879a96fed4092e33508a3777f /module/CaptchaManager.py | |
parent | captcha fix (diff) | |
download | pyload-94b7ed15d217a61f2102be326aa28509f3e379b5.tar.xz |
fixes last commit
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 7bb98dde9..7672aa645 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 == tid: + if task.id == str(tid): #task ids are strings 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 = id + self.id = str(id) self.captchaImg = img self.captchaType = type self.captchaFile = temp |