Exclude deleted metadata from remote lists

pull/699/head
Alex Baker 7 years ago
parent 1e597f583a
commit deaeed57c2

@ -54,6 +54,7 @@ public class CaldavFilter extends Filter {
.where( .where(
Criterion.and( Criterion.and(
TaskDao.TaskCriteria.activeAndVisible(), TaskDao.TaskCriteria.activeAndVisible(),
Field.field("caldav_tasks.deleted").eq(0),
Field.field("calendar").eq(caldavCalendar.getUuid()))); Field.field("calendar").eq(caldavCalendar.getUuid())));
} }

@ -63,6 +63,7 @@ public class GtasksFilter extends Filter {
.where( .where(
Criterion.and( Criterion.and(
TaskDao.TaskCriteria.activeAndVisible(), TaskDao.TaskCriteria.activeAndVisible(),
Field.field("google_tasks.deleted").eq(0),
Field.field("list_id").eq(list.getRemoteId()))); Field.field("list_id").eq(list.getRemoteId())));
} }

Loading…
Cancel
Save