From 94b7ed15d217a61f2102be326aa28509f3e379b5 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sun, 13 Mar 2011 22:30:56 +0100 Subject: fixes last commit --- module/remote/thriftbackend/Handler.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'module/remote/thriftbackend') diff --git a/module/remote/thriftbackend/Handler.py b/module/remote/thriftbackend/Handler.py index 7209c6bd5..62896af9f 100644 --- a/module/remote/thriftbackend/Handler.py +++ b/module/remote/thriftbackend/Handler.py @@ -6,7 +6,7 @@ from thriftgen.pyload.Pyload import Iface from module.PyFile import PyFile from module.utils import freeSpace -from base64 import b64encode +from base64 import standard_b64encode class Handler(Iface): def __init__(self, backend): @@ -444,10 +444,8 @@ class Handler(Iface): Parameters: - exclusive """ - t = CaptchaTask() - t.tid, t.data, t.type = self.serverMethods.get_captcha_task(exclusive) - t.tid = int(t.tid) - t.data = b64encode(t.data) + tid, data, type = self.serverMethods.get_captcha_task(exclusive) + t = CaptchaTask(int(tid), standard_b64encode(data), type) return t def getCaptchaTaskStatus(self, tid): -- cgit v1.2.3