only count those who have found at least 1 cam as participant

This commit is contained in:
2025-08-22 08:51:37 +02:00
parent 7cd5107c8a
commit 52efb51a3c
3 changed files with 7 additions and 6 deletions

View File

@@ -29,7 +29,7 @@ location_linz: "Wo: überall in Linz"
game_title: "Wer findet die meisten Kameras?" 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! 🕵️" 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" 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:" cameras_found: "Du hast %{found}/%{total} Kameras gefunden:"
highscore_title: "Bestenliste" highscore_title: "Bestenliste"
not_found_title: "ups" not_found_title: "ups"

View File

@@ -29,7 +29,7 @@ location_linz: "Where: all over Linz"
game_title: "Who finds the most cameras?" 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! 🕵️" 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" 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:" cameras_found: "You have found %{found}/%{total} cameras:"
highscore_title: "Highscore" highscore_title: "Highscore"
not_found_title: "uups" not_found_title: "uups"

View File

@@ -11,10 +11,11 @@ impl Backend {
pub(crate) async fn amount_participants(&self) -> i64 { pub(crate) async fn amount_participants(&self) -> i64 {
match self { match self {
Backend::Sqlite(db) => { Backend::Sqlite(db) => {
let row = sqlx::query!("SELECT COUNT(*) as count FROM client") let row =
.fetch_one(db) sqlx::query!("SELECT COUNT(DISTINCT client_uuid) AS count FROM sightings; ")
.await .fetch_one(db)
.unwrap(); .await
.unwrap();
row.count row.count
} }