From 4fc0104e23750849ad867b30aaef16cf9bdfc6be Mon Sep 17 00:00:00 2001 From: Miguel Barao Date: Thu, 4 Jun 2015 17:15:22 +0100 Subject: [PATCH] - dont show 0-Professor in /results. --- database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database.py b/database.py index a851884..a0ec6bc 100644 --- a/database.py +++ b/database.py @@ -23,7 +23,7 @@ class Database(object): SELECT student_id, name, MAX(grade) FROM students INNER JOIN tests ON students.number=tests.student_id - WHERE test_id==? + WHERE test_id==? AND student_id!=0 GROUP BY student_id ORDER BY grade DESC;''' return c.execute(cmd, [test_id]).fetchall() -- libgit2 0.21.2