This commit is contained in:
2026-04-28 06:08:43 +02:00
parent 9dbd3ab0b4
commit 2de8711ab7
4 changed files with 59 additions and 5 deletions
+2 -2
View File
@@ -77,7 +77,7 @@ def generate_report(output_path: str):
cell.alignment = Alignment(horizontal="center")
cell.border = thin_border
for row_idx, ev in enumerate(all_events, 2):
for row_idx, ev in enumerate(reversed(all_events), 2):
run_id, started, event_type, rel_path, file_name, directory, old_size, new_size = ev
size_change = ""
@@ -115,7 +115,7 @@ def generate_report(output_path: str):
if __name__ == "__main__":
REPORT_DIR = r"u:\Dropbox\!!!Days\Downloads Z230"
REPORT_DIR = r"z:\Dropbox\!!!Days\Downloads Z230"
timestamp = dt.now().strftime("%Y-%m-%d %H_%M")
default_name = f"{timestamp} DropboxBackupReport.xlsx"
output = sys.argv[1] if len(sys.argv) > 1 else os.path.join(REPORT_DIR, default_name)