Revert "Fixed SQL query to include events with all day reminders"

This reverts commit bf20810c
This commit is contained in:
Acácio Correia 2021-01-30 11:18:51 +00:00
parent 195480277a
commit b2da583a33
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ interface EventsDao {
fun getEventsWithIds(ids: List<Long>): List<Event>
//val selection = "$COL_REMINDER_MINUTES != -1 AND ($COL_START_TS > ? OR $COL_REPEAT_INTERVAL != 0) AND $COL_START_TS != 0"
@Query("SELECT * FROM events WHERE reminder_1_minutes != -1 OR all_day_reminder_minutes != 1 AND (start_ts > :currentTS OR repeat_interval != 0) AND start_ts != 0")
@Query("SELECT * FROM events WHERE reminder_1_minutes != -1 AND (start_ts > :currentTS OR repeat_interval != 0) AND start_ts != 0")
fun getEventsAtReboot(currentTS: Long): List<Event>
@Query("SELECT id FROM events")