diff options
author | Ilion Beyst <ilion.beyst@gmail.com> | 2022-06-10 21:49:32 +0200 |
---|---|---|
committer | Ilion Beyst <ilion.beyst@gmail.com> | 2022-06-10 21:49:32 +0200 |
commit | a3766980735851e9aa4b56a80e91c0b77cf63adb (patch) | |
tree | 0d8e6d077b0cd87809a3b7d9d2e113efc88524ee /planetwars-server/src/db | |
parent | 5ee66c9c9b4156692c739a861c9cdbaf0c65aec8 (diff) | |
download | planetwars.dev-a3766980735851e9aa4b56a80e91c0b77cf63adb.tar.xz planetwars.dev-a3766980735851e9aa4b56a80e91c0b77cf63adb.zip |
update RunMatch helper to allow for remote bots
Diffstat (limited to 'planetwars-server/src/db')
-rw-r--r-- | planetwars-server/src/db/matches.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/planetwars-server/src/db/matches.rs b/planetwars-server/src/db/matches.rs index 6ec1389..54fd113 100644 --- a/planetwars-server/src/db/matches.rs +++ b/planetwars-server/src/db/matches.rs @@ -25,7 +25,7 @@ pub struct NewMatchPlayer { /// player id within the match pub player_id: i32, /// id of the bot behind this player - pub code_bundle_id: i32, + pub code_bundle_id: Option<i32>, } #[derive(Queryable, Identifiable)] @@ -48,7 +48,7 @@ pub struct MatchPlayer { } pub struct MatchPlayerData { - pub code_bundle_id: i32, + pub code_bundle_id: Option<i32>, } pub fn create_match( |