From 2425f22b565f9b5397e69537388e312ba49af559 Mon Sep 17 00:00:00 2001 From: Bel LaPointe <153096461+breel-render@users.noreply.github.com> Date: Sun, 4 Aug 2024 11:44:22 -0600 Subject: [PATCH] grr edit dupes --- pttodoer/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pttodoer/src/main.rs b/pttodoer/src/main.rs index 986e755..e10b6a6 100644 --- a/pttodoer/src/main.rs +++ b/pttodoer/src/main.rs @@ -161,7 +161,7 @@ impl DB { for task in &edited.tasks.0 { if task.is_due() { now_due.push(task.clone()); - } else { + } else if !not_due.tasks.0.contains(task) { not_due.tasks.0.push(task.clone()); } }