diff --git a/livestreams.py b/livestreams.py index 60028f862304533f24b15ccc04daa53555a77ce0..23001259f8fff513da9b1e06d6a3415450c11757 100644 --- a/livestreams.py +++ b/livestreams.py @@ -2,11 +2,7 @@ from server import * @sched_func(30) def livestream_thumbnail(): - livestreams = query('''SELECT streams.lecture_id - FROM streams - JOIN lectures ON lectures.id = streams.lecture_id - WHERE streams.active) - ''') + livestreams = query('SELECT streams.lecture_id FROM streams WHERE streams.active') for v in genlive(livestreams): sorter.schedule_thumbnail(v['lecture_id'], v['path'])