aboutsummaryrefslogtreecommitdiff
path: root/planetwars-server/src/db
diff options
context:
space:
mode:
authorIlion Beyst <ilion.beyst@gmail.com>2022-06-10 21:49:32 +0200
committerIlion Beyst <ilion.beyst@gmail.com>2022-06-10 21:49:32 +0200
commita3766980735851e9aa4b56a80e91c0b77cf63adb (patch)
tree0d8e6d077b0cd87809a3b7d9d2e113efc88524ee /planetwars-server/src/db
parent5ee66c9c9b4156692c739a861c9cdbaf0c65aec8 (diff)
downloadplanetwars.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.rs4
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(