Skip to content

Commit

Permalink
Upgrade gsheets to latest
Browse files Browse the repository at this point in the history
This may all be moot if we're forced to scrap the spreadsheet
functionality, but all the same -- upgrade and fix a typing error.
  • Loading branch information
DavidCain committed Jun 22, 2024
1 parent 2e4a00f commit a97bc4c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 21 deletions.
23 changes: 3 additions & 20 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion ws/utils/member_sheets.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,11 @@ def update_participant(
return

# Insert a new row if no existing row found
sorted_names = wks.col_values(1)[1:]
sorted_names: list[str] = []
for name in wks.col_values(1)[1:]:
assert isinstance(name, str) # (not numeric, not null)
sorted_names.append(name)

row_index = bisect.bisect(sorted_names, participant.name) + 1
wks.insert_row(new_row, row_index + 1)

Expand Down

0 comments on commit a97bc4c

Please sign in to comment.