reporter
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user