Compare commits
No commits in common. "7d5852efdd8e67a69959970219b2fa287ccfff86" and "02077c04a52d2240cbacc54427e2b80307019515" have entirely different histories.
7d5852efdd
...
02077c04a5
3 changed files with 14 additions and 3 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -278,7 +278,7 @@ checksum = "af150ab688ff2122fcef229be89cb50dd66af9e01a4ff320cc137eecc9bacc38"
|
|||
|
||||
[[package]]
|
||||
name = "kosyncrs"
|
||||
version = "1.0.0"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"axum",
|
||||
"redis",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "kosyncrs"
|
||||
version = "1.0.0"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
|
13
src/main.rs
13
src/main.rs
|
@ -173,7 +173,18 @@ async fn get_progress(
|
|||
.unwrap_or_default();
|
||||
|
||||
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 {
|
||||
|
|
Loading…
Reference in a new issue