forked from firka/student-legacy
only show homework with deadline after today
This commit is contained in:
parent
4ed3cfc90e
commit
a061ebd1e9
@ -128,7 +128,9 @@ class GradesPageState extends State<GradesPage> {
|
||||
i++;
|
||||
|
||||
int homeworkCount = homeworkProvider.homework
|
||||
.where((e) => e.subject.id == subject.id)
|
||||
.where((e) =>
|
||||
e.subject.id == subject.id &&
|
||||
e.deadline.isBefore(DateTime.now()))
|
||||
.length;
|
||||
bool hasHomework = homeworkCount > 0;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user