X-Git-Url: http://git.euphorik.ch/index.cgi?a=blobdiff_plain;f=backend%2Fsrc%2Fmain.rs;h=8ea0819272daf9b78b5d3fd08587cbf3522c4e81;hb=28dede5779342bac9b4767d61badac099b1595c2;hp=a2201d4c8ad5b6efa1e9cd2af0f928721ebdbd66;hpb=9deef63b608b62780a4dfed031410c25e10e477a;p=valheim_web.git diff --git a/backend/src/main.rs b/backend/src/main.rs index a2201d4..8ea0819 100644 --- a/backend/src/main.rs +++ b/backend/src/main.rs @@ -28,15 +28,15 @@ struct MainTemplate { const VALUE_UNKNOWN: &str = "-"; #[cached(size = 1, time = 10)] -fn get_valheim_executable_information_cached(world_path: String) -> Option { - valheim_controller::get_valheim_executable_information(&world_path) +fn get_valheim_executable_information_cached(world_path: String, backup_path: String) -> Option { + valheim_controller::get_valheim_executable_information(&world_path, &backup_path) } #[get("/")] async fn main_page(config_shared: web::Data>) -> impl Responder { let config = config_shared.lock().unwrap(); - match get_valheim_executable_information_cached(config.world_path.clone()) { + match get_valheim_executable_information_cached(config.world_path.clone(), config.backup_path.clone()) { Some(info) => MainTemplate { text_status: String::from("Valheim server is up and running :)"),