forked from firka/student-legacy
nvm, this will work, not the prev one
This commit is contained in:
parent
a061ebd1e9
commit
3b78711478
@ -130,7 +130,7 @@ class GradesPageState extends State<GradesPage> {
|
|||||||
int homeworkCount = homeworkProvider.homework
|
int homeworkCount = homeworkProvider.homework
|
||||||
.where((e) =>
|
.where((e) =>
|
||||||
e.subject.id == subject.id &&
|
e.subject.id == subject.id &&
|
||||||
e.deadline.isBefore(DateTime.now()))
|
e.deadline.isAfter(DateTime.now()))
|
||||||
.length;
|
.length;
|
||||||
bool hasHomework = homeworkCount > 0;
|
bool hasHomework = homeworkCount > 0;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user