From c424d883badd8ba1a65d2c5cc7f58db50e9d1fb7 Mon Sep 17 00:00:00 2001
From: Geoffroy Bonneville <24917789+wismna@users.noreply.github.com>
Date: Sat, 25 Oct 2025 17:58:21 -0400
Subject: [PATCH] Get overdue tasks excludes deleted tasks
---
.idea/caches/deviceStreaming.xml | 12 ++++++++++++
.../geoffroy/donext/data/local/dao/TaskListDao.kt | 2 +-
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/.idea/caches/deviceStreaming.xml b/.idea/caches/deviceStreaming.xml
index 1780218..45290de 100644
--- a/.idea/caches/deviceStreaming.xml
+++ b/.idea/caches/deviceStreaming.xml
@@ -136,6 +136,18 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/donextv2/src/main/java/com/wismna/geoffroy/donext/data/local/dao/TaskListDao.kt b/donextv2/src/main/java/com/wismna/geoffroy/donext/data/local/dao/TaskListDao.kt
index 41ec713..a8bc67c 100644
--- a/donextv2/src/main/java/com/wismna/geoffroy/donext/data/local/dao/TaskListDao.kt
+++ b/donextv2/src/main/java/com/wismna/geoffroy/donext/data/local/dao/TaskListDao.kt
@@ -28,7 +28,7 @@ interface TaskListDao {
END
), 0) AS overdueCount
FROM task_lists tl
- LEFT JOIN tasks t ON t.task_list_id = tl.id
+ LEFT JOIN tasks t ON t.task_list_id = tl.id AND t.deleted = 0
WHERE tl.deleted = 0
GROUP BY tl.id
ORDER BY tl.display_order ASC