Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Lyse
kraftwerk
Commits
06eb649f
Commit
06eb649f
authored
Sep 13, 2012
by
Lysander Trischler
Browse files
Fix HTTP 500 bug in user overview
Bug was introduced in commit
3cbc55a0
parent
bcddb80d
Changes
1
Hide whitespace changes
Inline
Side-by-side
kraftwerk.py
View file @
06eb649f
...
...
@@ -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
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment