summaryrefslogtreecommitdiffstats
path: root/module/web/pyload
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-01-30 16:20:37 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-01-30 16:20:37 +0100
commitf96a5a1cf8800edc2f6a6d73316f7d7c67f32e29 (patch)
tree3081be7874ac1594e1ab4b9c58f2de503acac0b5 /module/web/pyload
parentfixed ssl xmlrpc backend (diff)
downloadpyload-f96a5a1cf8800edc2f6a6d73316f7d7c67f32e29.tar.xz
cleanup code
Diffstat (limited to 'module/web/pyload')
-rw-r--r--module/web/pyload/views.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/web/pyload/views.py b/module/web/pyload/views.py
index 76f991921..8e72402a4 100644
--- a/module/web/pyload/views.py
+++ b/module/web/pyload/views.py
@@ -265,10 +265,10 @@ def logs(request, item=-1):
item = counter #found our datetime
if item >= 0:
data.append({'line': counter, 'date': date+" "+time, 'level':level, 'message': message})
- perpagecheck = perpagecheck +1
+ perpagecheck += 1
if fro is None and dtime is not None: #if fro not set set it to first showed line
fro = dtime
- if perpagecheck >= perpage and perpage > 0:
+ if perpagecheck >= perpage > 0:
break
if fro is None: #still not set, empty log?
@@ -295,7 +295,7 @@ def collector(request):
def config(request):
conf = settings.PYLOAD.get_config()
plugin = settings.PYLOAD.get_plugin_config()
- accs = settings.PYLOAD.get_accounts()
+ accs = settings.PYLOAD.get_accounts(False, False)
messages = []
for section in chain(conf.itervalues(), plugin.itervalues()):