Skip to content

Commit

Permalink
Merge pull request #2 from uf-mil/fix-no-fill-in
Browse files Browse the repository at this point in the history
Subtract one from the week counter when adding Ns to reports
  • Loading branch information
cbrxyz authored Oct 19, 2023
2 parents bd85d93 + d5d063c commit f247948
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 f247948

Please sign in to comment.