Commit 64449bdb authored by Robert Czechowski's avatar Robert Czechowski
Browse files

Update db_conn_sqlite_new after rebasing to match corresponding changes in db_conn_sqlite

parent 9d4916dd
Pipeline #284 failed with stages
in 4 minutes and 47 seconds
......@@ -616,7 +616,8 @@ impl MedalConnection for Connection {
fn get_contest_list(&self) -> Vec<Contest> {
let query = "SELECT id, location, filename, name, duration, public, start_date, end_date
FROM contest";
FROM contest
ORDER BY id";
self.query_map_many(query, &[], |row| Contest { id: Some(row.get(0)),
location: row.get(1),
filename: row.get(2),
......@@ -653,7 +654,8 @@ impl MedalConnection for Connection {
FROM contest
JOIN taskgroup ON contest.id = taskgroup.contest
JOIN task ON taskgroup.id = task.taskgroup
WHERE contest.id = ?1";
WHERE contest.id = ?1
ORDER BY taskgroup.id";
let taskgroupcontest =
self.query_map_many(query, &[&contest_id], |row| {
(Contest { id: Some(contest_id),
......@@ -893,6 +895,8 @@ impl MedalConnection for Connection {
.unwrap();
Some(group)
}
fn reset_all_contest_visibilities(&self) { self.execute("UPDATE contest SET public = ?1", &[&false]).unwrap(); }
}
impl MedalObject<Connection> for Task {
......
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