From e4da1d1db74a24030b09902af3efefcf0dd08cfa Mon Sep 17 00:00:00 2001 From: softwaregames1 <167585946+softwaregames1@users.noreply.github.com> Date: Sun, 25 Oct 2026 09:25:07 +0000 Subject: [PATCH] Update crates/catalog/src/query.rs Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- crates/catalog/src/query.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/catalog/src/query.rs b/crates/catalog/src/query.rs index 7dea42e3f..94cfa1764 100644 --- a/crates/catalog/src/query.rs +++ b/crates/catalog/src/query.rs @@ -187,8 +187,8 @@ fn token_matches(p: &Photo, tok: &str) -> bool { let cmp = |x: f64, s: &str| match num(s) { Some((">", v)) => x > v, Some(("<", v)) => x < v, - Some((">=", v)) => x > v || (x - v).abs() < 1e-9, - Some(("<=", v)) => x < v || (x - v).abs() < 1e-9, + Some((">=", v)) => x >= v, + Some(("<=", v)) => x <= v, Some((_, v)) => (x - v).abs() < 1e-9, None => false, };