fixed progress tracking
This commit is contained in:
parent
e66771dba9
commit
96ea7fd2c9
2 changed files with 2 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,4 +1,3 @@
|
||||||
/target
|
/target
|
||||||
/.idea
|
/.idea
|
||||||
/Cargo.lock
|
/Cargo.lock
|
||||||
progress_tracking/progress.xlsx
|
|
||||||
|
|
@ -151,7 +151,8 @@ def main():
|
||||||
|
|
||||||
last_row_commit_val = ws.cell(row=ws.max_row, column=commit_col_index).value
|
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)
|
ws.delete_rows(ws.max_row)
|
||||||
print("Overwriting previous 'local' entry.")
|
print("Overwriting previous 'local' entry.")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue