mirror of
https://github.com/eigenein/wotbreplay-parser.git
synced 2026-10-21 02:17:02 +02:00
🚑️ Make account_database_ids optional
This commit is contained in:
1 parent
bad56d0121
commit
f1cddbecd5
2 files changed
+3
-3
No files matched your search
@@ -37,7 +37,7 @@ pub struct BasePlayerCreate {
|
||||
pub player_wait_times: Option<HashMap<u32, f64>>,
|
||||
|
||||
#[serde(rename(deserialize = "accountDatabaseIds"))]
|
||||
pub account_database_ids: Vec<u32>,
|
||||
pub account_database_ids: Option<Vec<u32>>,
|
||||
|
||||
#[serde(default, rename(deserialize = "turboBattlesStats"))]
|
||||
pub turbo_battles_statistics: Option<TurboBattlesStatistics>,
|
||||
|
||||
+2
-2
@@ -55,10 +55,10 @@ fn base_player_create_ok() -> Result<()> {
|
||||
);
|
||||
assert_eq!(
|
||||
arguments.account_database_ids,
|
||||
[
|
||||
Some(vec![
|
||||
517033644, 537867068, 597583401, 601893865, 576810156, 531053956, 599580824, 558025185,
|
||||
526927603, 594778041, 505587490, 597422303, 531923111, 587617355
|
||||
]
|
||||
])
|
||||
);
|
||||
|
||||
Ok(())
|
||||
|
||||
Reference in new issue
Block a user