Bugfix aim and order (#5)

* fix: 🐞 Fixed an ordering issue when saving to CSV

* chore: 🧹 Ruff clean up
This commit is contained in:
Jake-Pullen
2025-12-24 15:34:58 +00:00
committed by GitHub
parent 0e682aca35
commit 22a338f790
2 changed files with 23 additions and 36 deletions
+7 -3
View File
@@ -100,7 +100,9 @@ if __name__ == "__main__":
logging.info("Aborting...")
exit(0)
else:
shutil.rmtree(Path(Config.COMBINED_FOLDER)) # Delete everything including the directory
shutil.rmtree(
Path(Config.COMBINED_FOLDER)
) # Delete everything including the directory
Path(Config.COMBINED_FOLDER).mkdir()
extraction = Extract(Config)
@@ -168,7 +170,7 @@ if __name__ == "__main__":
files_processed_so_far = (
files_processed_previous + completed_count
)
elapsed_time = time.time() - start
rate_per_second = files_processed_so_far / elapsed_time
@@ -215,6 +217,8 @@ if __name__ == "__main__":
elif elapsed_time < 3600:
elapsed_time_str = f"{int(elapsed_time // 60)}m {int(elapsed_time % 60)}s"
else:
elapsed_time_str = f"{int(elapsed_time // 3600)}h {int((elapsed_time % 3600) // 60)}m"
elapsed_time_str = (
f"{int(elapsed_time // 3600)}h {int((elapsed_time % 3600) // 60)}m"
)
logging.info(f"All Complete total time {elapsed_time_str}")