Skip to content

Commit

Permalink
Subtract one from the week counter when adding Ns to reports
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrxyz committed Oct 19, 2023
1 parent bd85d93 commit d5d063c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ async def add_no(self):
first_date = datetime.date(2023, 9, 24)
today = datetime.date.today()
week = (today - first_date).days // 7 + 1
column = week + self.TOTAL_COLUMNS
column = week + self.TOTAL_COLUMNS - 1 # -1 because the week has now passed

# Add a "N" to all rows that do not currently have a value
names = await main_worksheet.col_values(1)
Expand Down

0 comments on commit d5d063c

Please sign in to comment.