Commit 4fc0104e23750849ad867b30aaef16cf9bdfc6be
1 parent
62bdb725
Exists in
master
and in
1 other branch
- dont show 0-Professor in /results.
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
database.py
@@ -23,7 +23,7 @@ class Database(object): | @@ -23,7 +23,7 @@ class Database(object): | ||
23 | SELECT student_id, name, MAX(grade) | 23 | SELECT student_id, name, MAX(grade) |
24 | FROM students INNER JOIN tests | 24 | FROM students INNER JOIN tests |
25 | ON students.number=tests.student_id | 25 | ON students.number=tests.student_id |
26 | - WHERE test_id==? | 26 | + WHERE test_id==? AND student_id!=0 |
27 | GROUP BY student_id | 27 | GROUP BY student_id |
28 | ORDER BY grade DESC;''' | 28 | ORDER BY grade DESC;''' |
29 | return c.execute(cmd, [test_id]).fetchall() | 29 | return c.execute(cmd, [test_id]).fetchall() |