From 7853e83e48fe2a8678fc870195e563c7b867643a Mon Sep 17 00:00:00 2001 From: RaNaN Date: Wed, 2 Feb 2011 22:33:55 +0100 Subject: webif fixes --- module/web/pyload_app.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'module/web/pyload_app.py') diff --git a/module/web/pyload_app.py b/module/web/pyload_app.py index 28c9f03fb..3682a3962 100644 --- a/module/web/pyload_app.py +++ b/module/web/pyload_app.py @@ -17,7 +17,6 @@ @author: RaNaN """ from copy import deepcopy -import datetime from datetime import datetime from itertools import chain from operator import itemgetter @@ -262,10 +261,10 @@ def config(): for pluginname, accdata in accs.iteritems(): for data in accdata: newpw = request.POST.get("Accounts|%s|password;%s" % (pluginname, data["login"]), "").strip() - time = request.POST.get("Accounts|%s|time;%s" % (pluginname, data["login"]), "").strip() + new_time = request.POST.get("Accounts|%s|time;%s" % (pluginname, data["login"]), "").strip() - if newpw or (time and (not data["options"].has_key("time") or [time] != data["options"]["time"])): - PYLOAD.update_account(pluginname, data["login"], newpw, {"time": [time]}) + if newpw or (new_time and (not data["options"].has_key("time") or [new_time] != data["options"]["time"])): + PYLOAD.update_account(pluginname, data["login"], newpw, {"time": [new_time]}) if errors: messages.append(_("Error occured when setting the following options:")) -- cgit v1.2.3