From e36f2f6f4cf53857605068eacdd37d3bfdc0429d Mon Sep 17 00:00:00 2001 From: Alex Baker Date: Tue, 9 Mar 2021 11:55:23 -0600 Subject: [PATCH] Fix drawer count when list is shared with 2+ users --- app/src/main/java/org/tasks/data/CaldavDao.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/tasks/data/CaldavDao.kt b/app/src/main/java/org/tasks/data/CaldavDao.kt index ff03f7c55..fa478264b 100644 --- a/app/src/main/java/org/tasks/data/CaldavDao.kt +++ b/app/src/main/java/org/tasks/data/CaldavDao.kt @@ -243,7 +243,7 @@ SELECT EXISTS(SELECT 1 abstract suspend fun getCalendars(tasks: List): List @Query(""" -SELECT caldav_lists.*, COUNT(tasks._id) AS count, COUNT(DISTINCT(principals.principal_id)) AS principals +SELECT caldav_lists.*, COUNT(DISTINCT(tasks._id)) AS count, COUNT(DISTINCT(principals.principal_id)) AS principals FROM caldav_lists LEFT JOIN caldav_tasks ON caldav_tasks.cd_calendar = caldav_lists.cdl_uuid