1
Fork 0
mirror of https://github.com/Steffo99/patched-porobot.git synced 2024-12-23 01:54:22 +00:00

Swap arguments of create_cardindex_from_dd_latest

This commit is contained in:
Steffo 2023-03-24 12:21:04 +01:00
parent 3d4901434c
commit 779910b8c4
Signed by: steffo
GPG key ID: 2A24051445686895
3 changed files with 3 additions and 3 deletions

View file

@ -148,7 +148,7 @@ pub fn create_cardindex_from_wd() -> card::CardIndex {
/// Create a [`card::CardIndex`] from the latest known data in Data Dragon. /// 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`. /// 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 client = reqwest::Client::new();
let mut index = card::CardIndex::new(); let mut index = card::CardIndex::new();

View file

@ -30,7 +30,7 @@ pub async fn main() {
debug!("Created LocalizedGlobalIndexes!"); debug!("Created LocalizedGlobalIndexes!");
debug!("Creating CardIndex..."); 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!("Created CardIndex!");
debug!("Creating CardSearchEngine..."); debug!("Creating CardSearchEngine...");

View file

@ -31,7 +31,7 @@ pub async fn main() {
debug!("Created LocalizedGlobalIndexes!"); debug!("Created LocalizedGlobalIndexes!");
debug!("Creating CardIndex..."); 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!("Created CardIndex!");
debug!("Creating CardSearchEngine..."); debug!("Creating CardSearchEngine...");