fixed progress tracking

This commit is contained in:
Moritz 2025-11-15 18:42:56 +01:00
parent e66771dba9
commit 96ea7fd2c9
2 changed files with 2 additions and 2 deletions

1
.gitignore vendored
View file

@ -1,4 +1,3 @@
/target
/.idea
/Cargo.lock
progress_tracking/progress.xlsx

View file

@ -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.")