global: snapshot

This commit is contained in:
nym21
2025-02-11 19:01:30 +01:00
parent cb7ea40e7c
commit cf26696d12
34 changed files with 1379 additions and 1871 deletions
+3 -4
View File
@@ -71,6 +71,7 @@ fn req_to_response_res(
AppState { vecs, .. }: AppState,
) -> color_eyre::Result<Response> {
let format = Format::try_from(format).ok();
let indexes = i
.to_lowercase()
.split(",")
@@ -78,13 +79,11 @@ fn req_to_response_res(
.collect::<Vec<_>>();
if indexes.len() > 1 {
return Err(eyre!("Multiple indexes aren't supported yet !"));
return Err(eyre!("Multiple indexes aren't supported"));
} else if indexes.is_empty() {
return Err(eyre!("Bad index(es)"));
return Err(eyre!("Unknown index"));
}
dbg!(format, &indexes, &v, from, to);
let values = v
.to_lowercase()
.split(",")