Commit 9a7baf27 authored by Julian Rother's avatar Julian Rother
Browse files

Fixed job_handler

parent 0818d5cc
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment