improve log
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
nyyu 2021-03-15 23:31:02 +01:00
parent 4b9e68207c
commit d175481566

View file

@ -70,6 +70,7 @@ pub trait DataSource {
); );
let data = self.get_champ_data_with_win_pourcentage(champ, positions, client); let data = self.get_champ_data_with_win_pourcentage(champ, positions, client);
let mut missing_roles = vec![];
for pos in positions { for pos in positions {
let mut ok = false; let mut ok = false;
for build in &data { for build in &data {
@ -79,14 +80,17 @@ pub trait DataSource {
} }
} }
if !ok { if !ok {
missing_roles.push(pos.to_owned());
}
}
if !missing_roles.is_empty() {
error!( error!(
"{}: Can't get data for {} at {}", "{}: Can't get data for {} at {}",
self.get_alias(), self.get_alias(),
champ.id, champ.id,
pos missing_roles.join(", ")
); );
} }
}
for build in data { for build in data {
let item_set = ItemSet { let item_set = ItemSet {