From 4a7229b175abfe782696d29cfe664e092c3d970e Mon Sep 17 00:00:00 2001 From: Ilion Beyst Date: Thu, 27 Jan 2022 19:12:18 +0100 Subject: correct submitted bot path --- planetwars-server/src/routes/demo.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'planetwars-server/src/routes') diff --git a/planetwars-server/src/routes/demo.rs b/planetwars-server/src/routes/demo.rs index bf375f0..16ec8f1 100644 --- a/planetwars-server/src/routes/demo.rs +++ b/planetwars-server/src/routes/demo.rs @@ -49,7 +49,7 @@ pub async fn submit_bot( MatchPlayer { name: "bot".to_string(), bot_spec: Box::new(DockerBotSpec { - code_path: PathBuf::from(SIMPLEBOT_PATH), + code_path: uploaded_bot_dir, image: PYTHON_IMAGE.to_string(), argv: vec!["python".to_string(), "bot.py".to_string()], }), -- cgit v1.2.3