Commit 37d037c4 authored by Robert Czechowski's avatar Robert Czechowski
Browse files

Add new query for participation statistics

parent 9ddd5b45
......@@ -1124,6 +1124,12 @@ impl MedalConnection for Connection {
FROM submission;";
let n_sub: i64 = self.query_map_one(query, &[], |row| row.get(0)).unwrap().unwrap();
let query = "SELECT contest, count(*)
FROM participation
GROUP BY contest
ORDER BY contest DESC;";
let n_sub: i64 = self.query_map_one(query, &[], |row| row.get(0)).unwrap().unwrap();
format!(
"{{
'timestamp': {},
......
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