this repo has no description

bug: fixed min/max typo that floored score to 0

Signed-off-by: Nick Gerakines <12125+ngerakines@users.noreply.github.com>

+1 -1
+1 -1
src/cache.rs
··· 162 162 .map(|post| { 163 163 let age = post.age_in_hours(now); 164 164 165 - let score = ((post.score - 1).min(0) as f64) / ((2 + age) as f64).powf(gravity); 165 + let score = ((post.score - 1).max(0) as f64) / ((2 + age) as f64).powf(gravity); 166 166 167 167 (score, post.uri.clone(), age) 168 168 })