Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bwinf
medal
Commits
64449bdb
Commit
64449bdb
authored
Nov 08, 2019
by
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
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/db_conn_sqlite_new.rs
View file @
64449bdb
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment