diff options
author | Ilion Beyst <ilion.beyst@gmail.com> | 2022-07-07 19:13:55 +0200 |
---|---|---|
committer | Ilion Beyst <ilion.beyst@gmail.com> | 2022-07-07 19:13:55 +0200 |
commit | 0f14dee499f48b11fc329164c30cd475400a9f4d (patch) | |
tree | b78e7546974c2785df5b713cf217ae89ce133475 /planetwars-server/src/modules | |
parent | 6ec792e3bd633a0b3971e401d29b2f8671f38b14 (diff) | |
download | planetwars.dev-0f14dee499f48b11fc329164c30cd475400a9f4d.tar.xz planetwars.dev-0f14dee499f48b11fc329164c30cd475400a9f4d.zip |
refactor: rename save_code_bundle to save_code_string
Diffstat (limited to 'planetwars-server/src/modules')
-rw-r--r-- | planetwars-server/src/modules/bots.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/planetwars-server/src/modules/bots.rs b/planetwars-server/src/modules/bots.rs index 629ecf6..b82ad41 100644 --- a/planetwars-server/src/modules/bots.rs +++ b/planetwars-server/src/modules/bots.rs @@ -4,7 +4,8 @@ use diesel::{PgConnection, QueryResult}; use crate::{db, util::gen_alphanumeric, BOTS_DIR}; -pub fn save_code_bundle( +/// Save a string containing bot code as a code bundle. +pub fn save_code_string( bot_code: &str, bot_id: Option<i32>, conn: &PgConnection, |