Commit 50a9a38d authored by Robert Czechowski's avatar Robert Czechowski

cargo fmt

parent 33fcfa0e
......@@ -1676,7 +1676,7 @@ impl MedalConnection for Connection {
self.query_map_many(query, &[], |row| (row.get(0), row.get(1))).unwrap();
let result = format!(
"{{
"{{
\"timestamp\": {},
\"active_sessions\": {},
\"active_participations\": {},
......@@ -1691,19 +1691,19 @@ impl MedalConnection for Connection {
}}
}}
",
now.sec,
n_asession,
n_apart,
n_session,
n_user,
n_pmsuser,
n_teacher,
n_part,
n_sub,
n_participations_by_id.iter()
.map(|(x, y)| -> String { format!("\"{}\": {}", x, y) })
.collect::<Vec<String>>()
.join(",\n ")
now.sec,
n_asession,
n_apart,
n_session,
n_user,
n_pmsuser,
n_teacher,
n_part,
n_sub,
n_participations_by_id.iter()
.map(|(x, y)| -> String { format!("\"{}\": {}", x, y) })
.collect::<Vec<String>>()
.join(",\n ")
);
let query = if db_has_value {
......
......@@ -1795,7 +1795,7 @@ impl MedalConnection for Connection {
self.query_map_many(query, &[], |row| (row.get(0), row.get(1))).unwrap();
let result = format!(
"{{
"{{
\"timestamp\": {},
\"active_sessions\": {},
\"active_participations\": {},
......@@ -1810,19 +1810,19 @@ impl MedalConnection for Connection {
}}
}}
",
now.sec,
n_asession,
n_apart,
n_session,
n_user,
n_pmsuser,
n_teacher,
n_part,
n_sub,
n_participations_by_id.iter()
.map(|(x, y)| -> String { format!("\"{}\": {}", x, y) })
.collect::<Vec<String>>()
.join(",\n ")
now.sec,
n_asession,
n_apart,
n_session,
n_user,
n_pmsuser,
n_teacher,
n_part,
n_sub,
n_participations_by_id.iter()
.map(|(x, y)| -> String { format!("\"{}\": {}", x, y) })
.collect::<Vec<String>>()
.join(",\n ")
);
let query = if db_has_value {
......
......@@ -1795,7 +1795,7 @@ impl MedalConnection for Connection {
self.query_map_many(query, &[], |row| (row.get(0), row.get(1))).unwrap();
let result = format!(
"{{
"{{
\"timestamp\": {},
\"active_sessions\": {},
\"active_participations\": {},
......@@ -1810,19 +1810,19 @@ impl MedalConnection for Connection {
}}
}}
",
now.sec,
n_asession,
n_apart,
n_session,
n_user,
n_pmsuser,
n_teacher,
n_part,
n_sub,
n_participations_by_id.iter()
.map(|(x, y)| -> String { format!("\"{}\": {}", x, y) })
.collect::<Vec<String>>()
.join(",\n ")
now.sec,
n_asession,
n_apart,
n_session,
n_user,
n_pmsuser,
n_teacher,
n_part,
n_sub,
n_participations_by_id.iter()
.map(|(x, y)| -> String { format!("\"{}\": {}", x, y) })
.collect::<Vec<String>>()
.join(",\n ")
);
let query = if db_has_value {
......
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