Skip to content

Commit

Permalink
Fix bug undone reminder cmp in abandoned-first
Browse files Browse the repository at this point in the history
  • Loading branch information
nimaaskarian committed Aug 20, 2024
1 parent 95fd470 commit 88b9c86
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/todo_app/todo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,9 @@ impl Todo {

pub fn abandonment_coefficient(&self) -> f64 {
self.schedule.as_ref().map_or(1., |sch| {
if sch.is_reminder() {
return 1.;
}
let days_diff = sch.days_diff();
if days_diff == 0 {
1.
Expand Down

0 comments on commit 88b9c86

Please sign in to comment.