mirror of
https://github.com/Steffo99/patched-porobot.git
synced 2024-12-22 09:34:21 +00:00
Swap arguments of create_cardindex_from_dd_latest
This commit is contained in:
parent
3d4901434c
commit
779910b8c4
3 changed files with 3 additions and 3 deletions
|
@ -148,7 +148,7 @@ pub fn create_cardindex_from_wd() -> card::CardIndex {
|
|||
/// Create a [`card::CardIndex`] from the latest known data in Data Dragon.
|
||||
///
|
||||
/// This function tries to load data from `https://dd.b.pvp.net/latest`.
|
||||
pub async fn create_cardindex_from_dd_latest(known_set_codes: &Vec<String>, locale: &str) -> card::CardIndex {
|
||||
pub async fn create_cardindex_from_dd_latest(locale: &str, known_set_codes: &Vec<String>) -> card::CardIndex {
|
||||
let client = reqwest::Client::new();
|
||||
let mut index = card::CardIndex::new();
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ pub async fn main() {
|
|||
debug!("Created LocalizedGlobalIndexes!");
|
||||
|
||||
debug!("Creating CardIndex...");
|
||||
let cards = create_cardindex_from_dd_latest(&known_set_codes, &locale).await;
|
||||
let cards = create_cardindex_from_dd_latest(&locale, &known_set_codes).await;
|
||||
debug!("Created CardIndex!");
|
||||
|
||||
debug!("Creating CardSearchEngine...");
|
||||
|
|
|
@ -31,7 +31,7 @@ pub async fn main() {
|
|||
debug!("Created LocalizedGlobalIndexes!");
|
||||
|
||||
debug!("Creating CardIndex...");
|
||||
let cards = create_cardindex_from_dd_latest(&known_set_codes, &locale).await;
|
||||
let cards = create_cardindex_from_dd_latest(&locale, &known_set_codes).await;
|
||||
debug!("Created CardIndex!");
|
||||
|
||||
debug!("Creating CardSearchEngine...");
|
||||
|
|
Loading…
Reference in a new issue