Commit 84e6d621 authored by Robert Czechowski's avatar Robert Czechowski
Browse files

Sort results by after sorting by name to fix mashup of grades when two...

Sort results by after sorting by name to fix mashup of grades when two participations with the same (last)name occur
parent 9d1c2191
Pipeline #592 passed with stages
in 30 minutes and 31 seconds
...@@ -642,7 +642,8 @@ impl MedalConnection for Connection { ...@@ -642,7 +642,8 @@ impl MedalConnection for Connection {
WHERE usergroup.admin = $1 WHERE usergroup.admin = $1
AND taskgroup.contest = $2 AND taskgroup.contest = $2
AND taskgroup.active = $3 AND taskgroup.active = $3
ORDER BY usergroup.id, sgrade, student.lastname, taskgroup.positionalnumber"; ORDER BY usergroup.id, sgrade, student.lastname, student.firstname, student.id,
taskgroup.positionalnumber";
let gradeinfo = let gradeinfo =
self.query_map_many(query, &[&session_id, &contest_id, &true], |row| { self.query_map_many(query, &[&session_id, &contest_id, &true], |row| {
(Grade { taskgroup: row.get(0), user: row.get(1), grade: row.get(2), validated: row.get(3) }, (Grade { taskgroup: row.get(0), user: row.get(1), grade: row.get(2), validated: row.get(3) },
......
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