Skip to content

Commit

Permalink
clean up previous merge issue
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyNASC20 committed Dec 18, 2024
1 parent 896abce commit 0c79bde
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions abr-testing/abr_testing/tools/abr_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def clean_sheet(sheet_name: str, credentials: str) -> Any:
# Check if the date is older than the cutoff
if formatted_date < cutoff_date:
rem_rows.append(row_id)
if len(rem_rows) > 2000:
if len(rem_rows) > 1500:
break
if len(rem_rows) == 0:
# No more rows to remove
Expand All @@ -54,9 +54,7 @@ def clean_sheet(sheet_name: str, credentials: str) -> Any:
print("deleted rows")
except Exception:
print("could not delete rows")
traceback.print_exc()
sys.exit(1)
# clean_sheet(sheet_name, credentials)
clean_sheet(sheet_name, credentials)


def run_sync_abr_sheet(
Expand All @@ -69,7 +67,7 @@ def run_sync_abr_sheet(
def run_temp_sensor(ambient_conditions_sheet: str, credentials: str) -> None:
"""Run temperature sensors on all robots."""
# Remove entries > 60 days
# clean_sheet(ambient_conditions_sheet, credentials)
clean_sheet(ambient_conditions_sheet, credentials)
processes = ABRAsairScript.run()
for process in processes:
process.start()
Expand Down

0 comments on commit 0c79bde

Please sign in to comment.