nvm, this will work, not the prev one

This commit is contained in:
Kima 2024-01-25 19:25:27 +01:00
parent a061ebd1e9
commit 3b78711478

View File

@ -130,7 +130,7 @@ class GradesPageState extends State<GradesPage> {
int homeworkCount = homeworkProvider.homework
.where((e) =>
e.subject.id == subject.id &&
e.deadline.isBefore(DateTime.now()))
e.deadline.isAfter(DateTime.now()))
.length;
bool hasHomework = homeworkCount > 0;