This commit is contained in:
Luc Mcgrady 2025-08-19 23:44:56 +01:00
parent 7fb425441b
commit 11191a8aea
No known key found for this signature in database
GPG key ID: 4F3D7A0B17CC3D9C

View file

@ -97,7 +97,7 @@ fn create_review_priority_fn(
// Interval-based ordering // Interval-based ordering
IntervalsAscending => wrap!(|c, _w| c.interval as i32), IntervalsAscending => wrap!(|c, _w| c.interval as i32),
IntervalsDescending => wrap!(|c, _w| 0i32.saturating_sub(c.interval as i32)), IntervalsDescending => wrap!(|c, _w| (c.interval as i32).saturating_neg()),
// Retrievability-based ordering // Retrievability-based ordering
RetrievabilityAscending => { RetrievabilityAscending => {
wrap!(move |c, w| (c.retrievability(w) * 1000.0) as i32) wrap!(move |c, w| (c.retrievability(w) * 1000.0) as i32)