Skip to content

Commit

Permalink
Fix members without report (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrxyz authored May 26, 2024
1 parent 2ba3fdc commit fe83079
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -758,10 +758,8 @@ async def students_status(self, column: int) -> list[Student]:
return res

async def members_without_report(self) -> list[Student]:
week = WeekColumn.current().report_column
column = week + len(Column)

students = await self.students_status(column)
week = WeekColumn.current()
students = await self.students_status(week.report_column)
return [student for student in students if not student.report]

@run_on_weekday(calendar.SUNDAY, 12, 0, check=is_active)
Expand Down

0 comments on commit fe83079

Please sign in to comment.