fixed progress tracking
This commit is contained in:
parent
e66771dba9
commit
96ea7fd2c9
2 changed files with 2 additions and 2 deletions
|
|
@ -151,7 +151,8 @@ def main():
|
|||
|
||||
last_row_commit_val = ws.cell(row=ws.max_row, column=commit_col_index).value
|
||||
|
||||
if last_row_commit_val == "local":
|
||||
# FIXED: Check if the value is a string and strip whitespace before comparing
|
||||
if isinstance(last_row_commit_val, str) and last_row_commit_val.strip() == "local":
|
||||
ws.delete_rows(ws.max_row)
|
||||
print("Overwriting previous 'local' entry.")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue