Fix: if no rq10 car finishes, the track's best car is not in the list
This commit is contained in:
parent
5c3a05d2e6
commit
e2efe052b5
1 changed files with 1 additions and 1 deletions
|
|
@ -149,7 +149,7 @@ async fn main() {
|
|||
None => { String::from("NO TRACK NAME") }
|
||||
Some(name) => { name.clone() }
|
||||
};
|
||||
let best_car = get_best_car(track, track_name.clone(), 10).await;
|
||||
let best_car = get_best_car(track, track_name.clone(), max_rq).await;
|
||||
if best_car.len() > 10 {
|
||||
for level in min_rq..max_rq + 1 {
|
||||
let best_car = get_best_car(track, track_name.clone(), level).await;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue