Skip to content

Commit

Permalink
Fix members without report
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrxyz committed May 26, 2024
1 parent 05dd083 commit 1dde98f
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 @@ -751,10 +751,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 1dde98f

Please sign in to comment.