show ranking for each camera on sighting
This commit is contained in:
@@ -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.|");
|
||||
}
|
||||
|
Reference in New Issue
Block a user