[Homework] Fix showing done homework on every profile.

This commit is contained in:
Kuba Szczodrzyński 2020-03-31 08:34:08 +02:00
parent da48c059ec
commit 93333a8c48

View File

@ -50,7 +50,7 @@ class HomeworkListFragment : LazyFragment(), CoroutineScope {
val today = Date.getToday()
val filter = when(homeworkDate) {
HomeworkDate.CURRENT -> "eventDate >= '${today.stringY_m_d}' AND eventIsDone = 0"
else -> "eventDate < '${today.stringY_m_d}' OR eventIsDone = 1"
else -> "(eventDate < '${today.stringY_m_d}' OR eventIsDone = 1)"
}
val adapter = EventListAdapter(