Commit 00aea483 authored by Julian Rother's avatar Julian Rother

Merge branch 'magnus' into 'master'

Benachrichtigungen für Kapitelmarker bei Moderatoren deaktiviert

See merge request !17
parents ecdc5819 cd399a94
......@@ -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
......
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