Commit 4274437e authored by Robert Czechowski's avatar Robert Czechowski Committed by Robert Czechowski
Browse files

Reverse ordering of contests, fixes #122

parent b7d2b4f7
Pipeline #942 passed with stages
in 14 minutes and 10 seconds
......@@ -1001,7 +1001,7 @@ impl MedalConnection for Connection {
let query = "SELECT id, location, filename, name, duration, public, start_date, end_date, min_grade, max_grade,
positionalnumber, requires_login, requires_contest, secret, message
FROM contest
ORDER BY positionalnumber";
ORDER BY positionalnumber DESC";
self.query_map_many(query, &[], |row| Contest { id: Some(row.get(0)),
location: row.get(1),
filename: row.get(2),
......
......@@ -1120,7 +1120,7 @@ impl MedalConnection for Connection {
let query = "SELECT id, location, filename, name, duration, public, start_date, end_date, min_grade, max_grade,
positionalnumber, requires_login, requires_contest, secret, message
FROM contest
ORDER BY positionalnumber";
ORDER BY positionalnumber DESC";
self.query_map_many(query, &[], |row| Contest { id: Some(row.get(0)),
location: row.get(1),
filename: row.get(2),
......
......@@ -1120,7 +1120,7 @@ impl MedalConnection for Connection {
let query = "SELECT id, location, filename, name, duration, public, start_date, end_date, min_grade, max_grade,
positionalnumber, requires_login, requires_contest, secret, message
FROM contest
ORDER BY positionalnumber";
ORDER BY positionalnumber DESC";
self.query_map_many(query, &[], |row| Contest { id: Some(row.get(0)),
location: row.get(1),
filename: row.get(2),
......
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