Commit 5343837e authored by Julian Rother's avatar Julian Rother

Forgot to move date_json_handler

parent 3bfa3abe
......@@ -73,9 +73,6 @@ def jobs_api_token_required(func):
return func(*args, **kwargs)
return decorator
def date_json_handler(obj):
return obj.isoformat() if hasattr(obj, 'isoformat') else obj
@sched_func(10)
def jobs_catch_broken():
# scheduled but never pinged
......
......@@ -474,6 +474,10 @@ def job_handler(*types, state='finished'):
return func
return wrapper
def date_json_handler(obj):
return obj.isoformat() if hasattr(obj, 'isoformat') else obj
def schedule_job(jobtype, data=None, priority=0):
if not data:
data = {}
......
Markdown is supported
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