Compare commits
2 Commits
inso/forbi
...
gaelg/erro
| Author | SHA1 | Date | |
|---|---|---|---|
| d97fcaeaa4 | |||
| 0bd489c42e |
@@ -115,7 +115,7 @@ async fn input(Json(input): Json<Input>) -> String {
|
||||
let mut state = STATE.lock().await;
|
||||
|
||||
if state.remaining.is_empty() {
|
||||
return "ERROR (everybody drew already)".into();
|
||||
return "... He mais tout le monde a déja pioché !!".into();
|
||||
}
|
||||
info!("joueurs qui restent : {:?}", state.remaining.join(","));
|
||||
match state.remaining.iter().position(|p| input.person == *p).map(|e| state.remaining.remove(e)) {
|
||||
@@ -140,6 +140,6 @@ async fn input(Json(input): Json<Input>) -> String {
|
||||
None => "ERROR".to_string()
|
||||
}
|
||||
}
|
||||
None => "Vous avez déja pioché !".to_string()
|
||||
None => "... He mais tu as déja pioché !".to_string()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user