Compare commits

..

No commits in common. "7d5852efdd8e67a69959970219b2fa287ccfff86" and "02077c04a52d2240cbacc54427e2b80307019515" have entirely different histories.

3 changed files with 14 additions and 3 deletions

2
Cargo.lock generated
View file

@ -278,7 +278,7 @@ checksum = "af150ab688ff2122fcef229be89cb50dd66af9e01a4ff320cc137eecc9bacc38"
[[package]] [[package]]
name = "kosyncrs" name = "kosyncrs"
version = "1.0.0" version = "0.1.0"
dependencies = [ dependencies = [
"axum", "axum",
"redis", "redis",

View file

@ -1,6 +1,6 @@
[package] [package]
name = "kosyncrs" name = "kosyncrs"
version = "1.0.0" version = "0.1.0"
edition = "2021" edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View file

@ -173,7 +173,18 @@ async fn get_progress(
.unwrap_or_default(); .unwrap_or_default();
if values.is_empty() { if values.is_empty() {
return (StatusCode::OK, Json(json!({}))); let res = GetProgress {
percentage: 0.0f32,
progress: String::new(),
device: String::new(),
device_id: String::new(),
timestamp: 0,
document,
};
return (
StatusCode::OK,
Json(json!({})),
);
} }
let res = GetProgress { let res = GetProgress {