Fixed SQL query to include events with all day reminders
This commit is contained in:
parent
dead5b6ee5
commit
bf20810cb3
|
@ -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 AND (start_ts > :currentTS OR repeat_interval != 0) AND 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")
|
||||
fun getEventsAtReboot(currentTS: Long): List<Event>
|
||||
|
||||
@Query("SELECT id FROM events")
|
||||
|
|
Loading…
Reference in New Issue