This commit is contained in:
parent
4b9e68207c
commit
d175481566
1 changed files with 10 additions and 6 deletions
|
@ -70,6 +70,7 @@ pub trait DataSource {
|
|||
);
|
||||
let data = self.get_champ_data_with_win_pourcentage(champ, positions, client);
|
||||
|
||||
let mut missing_roles = vec![];
|
||||
for pos in positions {
|
||||
let mut ok = false;
|
||||
for build in &data {
|
||||
|
@ -79,14 +80,17 @@ pub trait DataSource {
|
|||
}
|
||||
}
|
||||
if !ok {
|
||||
error!(
|
||||
"{}: Can't get data for {} at {}",
|
||||
self.get_alias(),
|
||||
champ.id,
|
||||
pos
|
||||
);
|
||||
missing_roles.push(pos.to_owned());
|
||||
}
|
||||
}
|
||||
if !missing_roles.is_empty() {
|
||||
error!(
|
||||
"{}: Can't get data for {} at {}",
|
||||
self.get_alias(),
|
||||
champ.id,
|
||||
missing_roles.join(", ")
|
||||
);
|
||||
}
|
||||
|
||||
for build in data {
|
||||
let item_set = ItemSet {
|
||||
|
|
Loading…
Add table
Reference in a new issue