Rename and clear bad code

This commit is contained in:
2026-08-18 12:14:35 +03:00
parent 3fcbd235cf
commit 99b3818181
19 changed files with 186 additions and 256 deletions
+2 -1
View File
@@ -98,7 +98,8 @@ pub async fn get_web_version(key: &str) -> Result<u32, reqwest::Error> {
let id_url = format!("{API_URL}{key}/version");
let client = reqwest::Client::new();
let version = client.get(&id_url).send().await?.text().await?;
Ok(version.parse::<u32>().unwrap())
println!("version: {}", version);
Ok(version.parse::<u32>().unwrap_or_default())
}
pub async fn get_local_version() -> u32 {