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

deleted chapters no longer show up

parent a08b5854
No related branches found
No related tags found
No related merge requests found
......@@ -575,7 +575,7 @@ def suggest_chapter(lectureid):
@app.route('/chapters/<int:lectureid>')
def chapters(lectureid):
chapters = query("SELECT * FROM chapters WHERE lecture_id = ? AND (visible OR ?) ORDER BY time DESC", lectureid, ismod())
chapters = query("SELECT * FROM chapters WHERE lecture_id = ? AND NOT deleted AND (visible OR ?) ORDER BY time DESC", lectureid, ismod())
if not chapters:
return 'No chapters found', 404
last = None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment