diff options
Diffstat (limited to 'planetwars-server/src')
| -rw-r--r-- | planetwars-server/src/db/matches.rs | 2 | ||||
| -rw-r--r-- | planetwars-server/src/modules/client_api.rs | 1 | ||||
| -rw-r--r-- | planetwars-server/src/modules/matches.rs | 10 | ||||
| -rw-r--r-- | planetwars-server/src/modules/ranking.rs | 2 | ||||
| -rw-r--r-- | planetwars-server/src/routes/demo.rs | 1 | ||||
| -rw-r--r-- | planetwars-server/src/schema.rs | 1 |
6 files changed, 15 insertions, 2 deletions
diff --git a/planetwars-server/src/db/matches.rs b/planetwars-server/src/db/matches.rs index 061e2ea..be2a8be 100644 --- a/planetwars-server/src/db/matches.rs +++ b/planetwars-server/src/db/matches.rs @@ -15,6 +15,7 @@ use super::bots::{Bot, BotVersion}; pub struct NewMatch<'a> { pub state: MatchState, pub log_path: &'a str, + pub is_public: bool, } #[derive(Insertable)] @@ -36,6 +37,7 @@ pub struct MatchBase { pub log_path: String, pub created_at: NaiveDateTime, pub winner: Option<i32>, + pub is_public: bool, } #[derive(Queryable, Identifiable, Associations, Clone)] diff --git a/planetwars-server/src/modules/client_api.rs b/planetwars-server/src/modules/client_api.rs index 7026671..f960e1b 100644 --- a/planetwars-server/src/modules/client_api.rs +++ b/planetwars-server/src/modules/client_api.rs @@ -119,6 +119,7 @@ impl pb::client_api_service_server::ClientApiService for ClientApiServer { }); let run_match = RunMatch::from_players( self.runner_config.clone(), + false, vec