Commit 953b21ad authored by Julian Rother's avatar Julian Rother
Browse files

Set domain in scheduler request context, fixes #361

parent 182fb778
......@@ -15,7 +15,7 @@ def sched_func(delay, priority=0, firstdelay=None, args=[], kargs={}):
firstdelay = random.randint(1, 120)
def wrapper(func):
def sched_wrapper():
with app.test_request_context():
with app.test_request_context(base_url=''):
if config.get('DEBUG', False):
print("Scheduler: started {} (frequency 1/{}s)".format(func.__name__, delay))
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