diff --git a/locales/de.yml b/locales/de.yml index d35911f..6ca20a6 100644 --- a/locales/de.yml +++ b/locales/de.yml @@ -29,7 +29,7 @@ location_linz: "Wo: überall in Linz" game_title: "Wer findet die meisten Kameras?" game_explanation_todo: "Willkommen zu unserem Überwachungsbewusstseinsspiel! Als Teil unserer Digital Shadows Ausstellung beim Ars Electronica Festival haben wir QR-Codes bei Überwachungskameras in ganz Linz platziert. Deine Mission: Entdecke die Kameras, scanne unsere Codes und finde heraus, wie allgegenwärtig öffentliche Überwachung wirklich ist. Wir sind aber nur Menschen – wir haben nur einen kleinen Teil aller Kameras erfasst, die unsere Stadt beobachten. Wer beobachtet wen in unseren öffentlichen Räumen? Die Jagd beginnt jetzt! 🕵️" save_button: "Speichern" -amount_participants: "Aktuell gibt es insgesamt %{amount} Teilnehmer." +amount_participants: "Aktuell gibt es insgesamt %{amount} Teilnehmer (die mindestens 1 Kamera gefunden haben)." cameras_found: "Du hast %{found}/%{total} Kameras gefunden:" highscore_title: "Bestenliste" not_found_title: "ups" diff --git a/locales/en.yml b/locales/en.yml index 87bf4f4..51820ee 100644 --- a/locales/en.yml +++ b/locales/en.yml @@ -29,7 +29,7 @@ location_linz: "Where: all over Linz" game_title: "Who finds the most cameras?" game_explanation_todo: "Welcome to our public surveillance awareness game! As part of our Digital Shadows exhibition at Ars Electronica Festival, we've placed QR codes near surveillance cameras throughout Linz. Your mission: spot the cameras, scan our codes, and discover how pervasive public monitoring really is. We're only human though – we've mapped just a small subset of all the cameras watching our city. Who's watching whom in our public spaces? The hunt begins now! 🕵️" save_button: "Save" -amount_participants: "In total there are %{amount} participants so far." +amount_participants: "In total there are %{amount} participants so far (with at least 1 camera)." cameras_found: "You have found %{found}/%{total} cameras:" highscore_title: "Highscore" not_found_title: "uups" diff --git a/src/model/highscore.rs b/src/model/highscore.rs index 031635c..74a96b8 100644 --- a/src/model/highscore.rs +++ b/src/model/highscore.rs @@ -11,10 +11,11 @@ impl Backend { pub(crate) async fn amount_participants(&self) -> i64 { match self { Backend::Sqlite(db) => { - let row = sqlx::query!("SELECT COUNT(*) as count FROM client") - .fetch_one(db) - .await - .unwrap(); + let row = + sqlx::query!("SELECT COUNT(DISTINCT client_uuid) AS count FROM sightings; ") + .fetch_one(db) + .await + .unwrap(); row.count }