aboutsummaryrefslogtreecommitdiff
path: root/planetwars-server/src/modules/bots.rs
diff options
context:
space:
mode:
authorIlion Beyst <ilion.beyst@gmail.com>2022-10-11 22:58:42 +0200
committerIlion Beyst <ilion.beyst@gmail.com>2022-10-11 22:58:42 +0200
commit19b9a6ea1b8a36ae2301ffbc95cf2f54bf7fa77f (patch)
tree95809a4813381520abdcdedfeb5caf61c975482f /planetwars-server/src/modules/bots.rs
parent8651f1d8f196a61aff1b4eef0b475649b2c58444 (diff)
downloadplanetwars.dev-19b9a6ea1b8a36ae2301ffbc95cf2f54bf7fa77f.tar.xz
planetwars.dev-19b9a6ea1b8a36ae2301ffbc95cf2f54bf7fa77f.zip
add new bot stats endpoint
Diffstat (limited to 'planetwars-server/src/modules/bots.rs')
-rw-r--r--planetwars-server/src/modules/bots.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/planetwars-server/src/modules/bots.rs b/planetwars-server/src/modules/bots.rs
index 4aba168..6a2883c 100644
--- a/planetwars-server/src/modules/bots.rs
+++ b/planetwars-server/src/modules/bots.rs
@@ -24,7 +24,7 @@ pub fn save_code_string(
container_digest: None,
};
let version = db::bots::create_bot_version(&new_code_bundle, conn)?;
- // Leave this coupled for now - this is how the behaviour was bevore.
+ // Leave this coupled for now - this is how the behaviour was before.
// It would be cleaner to separate version setting and bot selection, though.
if let Some(bot_id) = bot_id {
db::bots::set_active_version(bot_id, Some(version.id), conn)?;