KB: activate all positions if missing role
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
nyyu 2021-03-15 23:22:44 +01:00
parent da71f11855
commit 4b9e68207c

View file

@ -174,6 +174,16 @@ impl KBDataSource {
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
}
@ -351,6 +361,7 @@ impl DataSource for KBDataSource {
break;
}
}
if let Some(b) = build {
champ_data.push(self.get_build(&b));