From 2ae7b0d743d997c8ce5a1de2a3856b64d788796f Mon Sep 17 00:00:00 2001 From: Julian Rother <julianr@fsmpi.rwth-aachen.de> Date: Tue, 2 Jan 2018 02:25:19 +0100 Subject: [PATCH] Fixed last commit --- livestreams.py | 2 +- sorter.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/livestreams.py b/livestreams.py index 3ccbe1d..626eea2 100644 --- a/livestreams.py +++ b/livestreams.py @@ -4,7 +4,7 @@ from server import * def livestream_thumbnail(): livestreams = query('SELECT streams.lecture_id, streams.handle AS livehandle FROM streams WHERE streams.active') 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(): diff --git a/sorter.py b/sorter.py index 86b5153..df0be85 100644 --- a/sorter.py +++ b/sorter.py @@ -63,7 +63,7 @@ def schedule_thumbnail(lectureid=None): JOIN formats ON (videos.video_format = formats.id) 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 @job_handler('transcode') -- GitLab