KB: activate all positions if missing role
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
da71f11855
commit
4b9e68207c
1 changed files with 11 additions and 0 deletions
|
@ -174,6 +174,16 @@ impl KBDataSource {
|
||||||
positions.push("SUPPORT".to_owned());
|
positions.push("SUPPORT".to_owned());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: find better solution, activate all positions for retrieve older builds
|
||||||
|
if positions.is_empty() {
|
||||||
|
positions.push("TOP".to_owned());
|
||||||
|
positions.push("JUNGLE".to_owned());
|
||||||
|
positions.push("MID".to_owned());
|
||||||
|
positions.push("BOT".to_owned());
|
||||||
|
positions.push("SUPPORT".to_owned());
|
||||||
|
}
|
||||||
|
|
||||||
positions
|
positions
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -351,6 +361,7 @@ impl DataSource for KBDataSource {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if let Some(b) = build {
|
if let Some(b) = build {
|
||||||
champ_data.push(self.get_build(&b));
|
champ_data.push(self.get_build(&b));
|
||||||
|
|
Loading…
Add table
Reference in a new issue