aboutsummaryrefslogtreecommitdiff
path: root/planetwars-server/src/routes/demo.rs
diff options
context:
space:
mode:
authorIlion Beyst <ilion.beyst@gmail.com>2022-06-10 21:09:33 +0200
committerIlion Beyst <ilion.beyst@gmail.com>2022-06-10 21:09:33 +0200
commit5ee66c9c9b4156692c739a861c9cdbaf0c65aec8 (patch)
tree55c1ce0b99b26c6837304d72da772be6491882ff /planetwars-server/src/routes/demo.rs
parentd1977b95c82f608bc558432cdfba8026aaf0648d (diff)
downloadplanetwars.dev-5ee66c9c9b4156692c739a861c9cdbaf0c65aec8.tar.xz
planetwars.dev-5ee66c9c9b4156692c739a861c9cdbaf0c65aec8.zip
allow match_player code_bundle_id to be null
Diffstat (limited to 'planetwars-server/src/routes/demo.rs')
-rw-r--r--planetwars-server/src/routes/demo.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/planetwars-server/src/routes/demo.rs b/planetwars-server/src/routes/demo.rs
index 7f7ba71..3318dfd 100644
--- a/planetwars-server/src/routes/demo.rs
+++ b/planetwars-server/src/routes/demo.rs
@@ -58,12 +58,12 @@ pub async fn submit_bot(
match_players: vec![
FullMatchPlayerData {
base: match_data.match_players[0].clone(),
- code_bundle: player_code_bundle,
+ code_bundle: Some(player_code_bundle),
bot: None,
},
FullMatchPlayerData {
base: match_data.match_players[1].clone(),
- code_bundle: opponent_code_bundle,
+ code_bundle: Some(opponent_code_bundle),
bot: Some(opponent),
},
],