show ranking for each camera on sighting

This commit is contained in:
2025-08-06 09:03:50 +02:00
parent 16982d2c0d
commit 2ff7a2c7a9
5 changed files with 38 additions and 21 deletions

View File

@@ -102,8 +102,8 @@ async fn game(
return Err(not_found(cookies, headers).await.into_response());
};
if backend.client_found_camera(&client, &camera).await {
messages.info(format!("found-cam|{}", camera.name));
if let Ok(number) = backend.client_found_camera(&client, &camera).await {
messages.info(format!("found-cam|{}|{number}", camera.name));
} else {
messages.info("err|Try to find a new camera!|You have already collected this camera.|");
}