aboutsummaryrefslogtreecommitdiff
path: root/planetwars-server/src/routes/matches.rs
diff options
context:
space:
mode:
authorIlion Beyst <ilion.beyst@gmail.com>2022-07-05 20:34:20 +0200
committerIlion Beyst <ilion.beyst@gmail.com>2022-07-05 20:34:20 +0200
commitb3df5c6f8cc59e099a2f1db3df8089af4abca02e (patch)
tree8b717834ab72165610b1548bb080a3299d936936 /planetwars-server/src/routes/matches.rs
parent8a47b948eb88f1e0ff649880a70f9416306bac92 (diff)
downloadplanetwars.dev-b3df5c6f8cc59e099a2f1db3df8089af4abca02e.tar.xz
planetwars.dev-b3df5c6f8cc59e099a2f1db3df8089af4abca02e.zip
migrate code_bundles to bot_versions
Diffstat (limited to 'planetwars-server/src/routes/matches.rs')
-rw-r--r--planetwars-server/src/routes/matches.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/planetwars-server/src/routes/matches.rs b/planetwars-server/src/routes/matches.rs
index 5f95ce9..0c1bee4 100644
--- a/planetwars-server/src/routes/matches.rs
+++ b/planetwars-server/src/routes/matches.rs
@@ -1,7 +1,7 @@
-use std::path::PathBuf;
use axum::{extract::Path, Json};
use hyper::StatusCode;
use serde::{Deserialize, Serialize};
+use std::path::PathBuf;
use crate::{
db::matches::{self, MatchState},
@@ -46,7 +46,6 @@ pub fn match_data_to_api(data: matches::FullMatchData) -> ApiMatch {
}
}
-
pub async fn get_match_data(
Path(match_id): Path<i32>,
conn: DatabaseConnection,