summaryrefslogtreecommitdiffstats
path: root/pyload/webui/app/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/webui/app/utils.py')
-rw-r--r--pyload/webui/app/utils.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pyload/webui/app/utils.py b/pyload/webui/app/utils.py
index f9931f531..69067d8fe 100644
--- a/pyload/webui/app/utils.py
+++ b/pyload/webui/app/utils.py
@@ -9,6 +9,7 @@ from pyload.webui import env, THEME
from pyload.api import has_permission, PERMS, ROLE
+
def render_to_response(file, args={}, proc=[]):
for p in proc:
args.update(p())
@@ -56,7 +57,8 @@ def set_permission(perms):
"""
permission = 0
for name in dir(PERMS):
- if name.startswith("_"): continue
+ if name.startswith("_"):
+ continue
if name in perms and perms[name]:
permission |= getattr(PERMS, name)