Add scheduler test.

This commit is contained in:
Patrick Jentsch 2019-07-10 14:20:22 +02:00
parent 9679ef80c8
commit d41702bc51
2 changed files with 9 additions and 2 deletions

View File

@ -7,7 +7,7 @@ import json
@scheduler.route('/') @scheduler.route('/')
@login_required @login_required
def schedule(): def scheduler():
job = { job = {
'creator': current_user.id, 'creator': current_user.id,
'files': ['file_1', 'file_2', 'file_3'], 'files': ['file_1', 'file_2', 'file_3'],
@ -18,4 +18,4 @@ def schedule():
} }
job = background_scheduler.add_job(print, trigger='date', args=[job]) job = background_scheduler.add_job(print, trigger='date', args=[job])
print(job) print(job)
return 'job' return render_template('scheduler/index.html.j2', title='Scheduler')

View File

@ -0,0 +1,7 @@
{% extends "base.html.j2" %}
{% block page_content %}
<div class="col s12">
</div>
{% endblock %}