mirror of
https://github.com/szkolny-eu/szkolny-android.git
synced 2025-06-14 06:30:18 +02:00
[Homework] Fix showing done homework on every profile.
This commit is contained in:
@ -50,7 +50,7 @@ class HomeworkListFragment : LazyFragment(), CoroutineScope {
|
|||||||
val today = Date.getToday()
|
val today = Date.getToday()
|
||||||
val filter = when(homeworkDate) {
|
val filter = when(homeworkDate) {
|
||||||
HomeworkDate.CURRENT -> "eventDate >= '${today.stringY_m_d}' AND eventIsDone = 0"
|
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(
|
val adapter = EventListAdapter(
|
||||||
|
Reference in New Issue
Block a user