Skip to content

Commit

Permalink
Merge pull request #749 from danielzhang2001/DanielsBranch
Browse files Browse the repository at this point in the history
Revamped giveset API and fixed indexerror bug with sheet for entries …
  • Loading branch information
danielzhang2001 authored Aug 7, 2024
2 parents 821b2af + 43cfab9 commit c3ffb31
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions sheets/sheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -1234,15 +1234,11 @@ def next_data_cell(values: List[List[str]]) -> str:
else "Invalid"
),
]
for i, cell in enumerate(group_cells):
if cell == "Invalid":
print(
f"Invalid cell found at section {section + 1}, column {letter}, index {i}, start_index {start_index}"
)

if any(cell == "Invalid" for cell in group_cells):
print("returning invalid!")
return f"{letter}{section + 2}"
last_index = index
print("returning valid!")
return f"{letters[(last_index + 1) % len(letters)]}{2 if len(values) == 0 else (len(values) + 3)}"


Expand Down

0 comments on commit c3ffb31

Please sign in to comment.