...
 
Commits (2)
......@@ -43,7 +43,8 @@ def suggest_chapter(lectureid):
lectureid, chapter_start, text, datetime.now(), datetime.now(), session.get('user', {'dbid':None})['dbid'], submitter
)
chapter = query('SELECT * FROM chapters WHERE id = ?', id)[0]
notify_mods('chapter_submitted', course['id'], course=course, lecture=lecture, chapter=chapter)
if not ismod():
notify_mods('chapter_submitted', course['id'], course=course, lecture=lecture, chapter=chapter)
if 'ref' in request.values:
return redirect(request.values['ref'])
return 'OK', 200
......