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