Commit db5a4f29 authored by Julian Rother's avatar Julian Rother
Browse files

Fixed regression in add_thumbnail_job

parent 49c81f52
...@@ -51,7 +51,7 @@ def schedule_thumbnail(lectureid): ...@@ -51,7 +51,7 @@ def schedule_thumbnail(lectureid):
@csrf_protect @csrf_protect
@handle_errors('jobs_overview', 'Zu dieser Veranstaltung existieren keine Videos!', 404, IndexError) @handle_errors('jobs_overview', 'Zu dieser Veranstaltung existieren keine Videos!', 404, IndexError)
def add_thumbnail_job(): def add_thumbnail_job():
schedule_thumbnail(request.values['lectureid']) schedule_thumbnail(int(request.values['lectureid']))
return redirect(request.values.get('ref', url_for('jobs_overview'))) return redirect(request.values.get('ref', url_for('jobs_overview')))
def insert_video(lectureid, dbfilepath, fileformatid, hash="", filesize=-1, duration=-1, sourceid=None): def insert_video(lectureid, dbfilepath, fileformatid, hash="", filesize=-1, duration=-1, sourceid=None):
......
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