server: add not_modified check when no 'to' param

This commit is contained in:
nym21
2025-03-31 17:19:33 +02:00
parent cc5091e28c
commit 655b99cac8
9 changed files with 103 additions and 45 deletions

View File

@@ -22,7 +22,7 @@ pub fn query(params: QueryParams) -> color_eyre::Result<()> {
let ids = params.values.iter().map(|s| s.as_str()).collect::<Vec<_>>();
let res = query.search(index, &ids, params.from, params.to, params.format)?;
let res = query.search_and_format(index, &ids, params.from, params.to, params.format)?;
if params.format.is_some() {
println!("{}", res);