Commit fb90224e authored by Christoph Rackwitz's avatar Christoph Rackwitz Committed by Julian Rother

cutprogress: user argument falsch behandelt

parent 59b8a449
......@@ -11,10 +11,6 @@ def cutprogress(user=None):
allsemester = query('SELECT DISTINCT semester from courses ORDER BY semester DESC')
semester = request.values.get('semester', allsemester[0]['semester'])
# filter to single user?
if user is not None:
user = query('SELECT * FROM users WHERE id = ?', user)[0]
# column headers: courses
courses = query('''
SELECT courses.id, courses.handle, courses.short, courses.responsible
......@@ -91,7 +87,7 @@ def cutprogress(user=None):
# dropdown selection
allsemester=allsemester, # options
semester=semester, # choice
user=user,
user=query('SELECT * FROM users WHERE id = ?', user)[0],
# content
courses=courses,
......
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