Commit afbdf709 authored by Andreas Valder's avatar Andreas Valder
Browse files

sql syntax error

parent 7b68cf9f
......@@ -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'])
......
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