Commit 06eb649f authored by Lysander Trischler's avatar Lysander Trischler

Fix HTTP 500 bug in user overview

Bug was introduced in commit 3cbc55a0
parent bcddb80d
......@@ -661,12 +661,12 @@ if __name__ == "__main__":
class ListUsersHandler(BaseHandler):
@authenticated
def get(self):
self.render("users.html", users=[Exercise(**exercise) for exercise in self.db.query("""
self.render("users.html", users=self.db.query("""
SELECT username, SUM(count) AS count_sum
FROM exercises
GROUP BY username
ORDER BY username ASC, count_sum ASC
""")])
"""))
@route(r'/users/(.+)')
class ViewUserHandler(ListUsersHandler):
......
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