Skip to content
Snippets Groups Projects
Commit 9a7baf27 authored by Julian Rother's avatar Julian Rother
Browse files

Fixed job_handler

parent 0818d5cc
No related branches found
No related tags found
No related merge requests found
...@@ -480,7 +480,6 @@ def dbstatus(): ...@@ -480,7 +480,6 @@ def dbstatus():
clusters[cluster].append(host) clusters[cluster].append(host)
return render_template('dbstatus.html', clusters=clusters, statuses=status, vars=variables), 200 return render_template('dbstatus.html', clusters=clusters, statuses=status, vars=variables), 200
job_handlers = {} job_handlers = {}
def job_handler(*types, state='finished'): def job_handler(*types, state='finished'):
def wrapper(func): def wrapper(func):
...@@ -493,7 +492,6 @@ def job_handler(*types, state='finished'): ...@@ -493,7 +492,6 @@ def job_handler(*types, state='finished'):
return func return func
return wrapper return wrapper
def date_json_handler(obj): def date_json_handler(obj):
return obj.isoformat() if hasattr(obj, 'isoformat') else obj return obj.isoformat() if hasattr(obj, 'isoformat') else obj
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment