Commit 2ae7b0d7 authored by Julian Rother's avatar Julian Rother
Browse files

Fixed last commit

parent 74727405
......@@ -4,7 +4,7 @@ from server import *
def livestream_thumbnail():
livestreams = query('SELECT streams.lecture_id, streams.handle AS livehandle FROM streams WHERE')
for v in genlive(livestreams):
schedule_job('thumbnail', {'lectureid': v['lecture_id'], 'path': v['path']})
schedule_job('thumbnail', {'lectureid': str(v['lecture_id']), 'path': v['path']})
@app.route('/internal/streaming/legacy_auth', methods=['GET', 'POST'])
def streamauth():
......@@ -63,7 +63,7 @@ def schedule_thumbnail(lectureid=None):
JOIN formats ON (videos.video_format =
WHERE videos.lecture_id = ?
ORDER BY formats.prio DESC''', lectureid)
schedule_job('thumbnail', {'lectureid': lectureid, 'path': videos[0]['path']})
schedule_job('thumbnail', {'lectureid': str(lectureid), 'path': videos[0]['path']})
return ret
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