Skip to content
Snippets Groups Projects
Commit afbdf709 authored by Andreas Valder's avatar Andreas Valder
Browse files

sql syntax error

parent 7b68cf9f
Branches
Tags
No related merge requests found
......@@ -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'])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment