From 9a7baf2744971e6189996040bd4b00a1fbea594a Mon Sep 17 00:00:00 2001 From: Julian Rother <julianr@fsmpi.rwth-aachen.de> Date: Sat, 16 Dec 2017 00:14:58 +0100 Subject: [PATCH] Fixed job_handler --- server.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/server.py b/server.py index 2b36d5b..5e2cda4 100644 --- a/server.py +++ b/server.py @@ -480,7 +480,6 @@ def dbstatus(): clusters[cluster].append(host) return render_template('dbstatus.html', clusters=clusters, statuses=status, vars=variables), 200 - job_handlers = {} def job_handler(*types, state='finished'): def wrapper(func): @@ -490,10 +489,9 @@ def job_handler(*types, state='finished'): if state not in job_handlers[jobtype]: job_handlers[jobtype][state] = [] job_handlers[jobtype][state].append(func) - return func + return func return wrapper - def date_json_handler(obj): return obj.isoformat() if hasattr(obj, 'isoformat') else obj -- GitLab