summaryrefslogtreecommitdiffstats
path: root/module/web/pyload_app.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/web/pyload_app.py')
-rw-r--r--module/web/pyload_app.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/web/pyload_app.py b/module/web/pyload_app.py
index 0131e888f..22003da43 100644
--- a/module/web/pyload_app.py
+++ b/module/web/pyload_app.py
@@ -307,13 +307,13 @@ def config():
t = time.localtime(data.validuntil)
data.validuntil = time.strftime("%d.%m.%Y", t)
- if data.options.has_key("time"):
+ if "time" in data.options:
try:
data.options["time"] = data.options["time"][0]
except:
data.options["time"] = "0:00-0:00"
- if data.options.has_key("limitDL"):
+ if "limitDL" in data.options:
data.options["limitdl"] = data.options["limitDL"][0]
else:
data.options["limitdl"] = "0"