diff --git a/main.py b/main.py index e5318af..45b851f 100644 --- a/main.py +++ b/main.py @@ -74,6 +74,7 @@ def main(): # 5a) NEW files — compute BLAKE3, batch INSERT skipped_files = [] + new_files = [] if new_paths: print(f" Hashing {len(new_paths)} new files...") new_files = [] @@ -251,6 +252,23 @@ def main(): {rows} """ + def _file_section(title, color, paths): + if not paths: + return "" + rows = "".join(f"{p}" for p in sorted(paths)) + return f""" +

{title} ({len(paths)})

+ + {rows} +
""" + + new_paths_ok = [nf["relative_path"] for nf in new_files] + files_detail = ( + _file_section("✓ Nove soubory", "#2a7a2a", new_paths_ok) + + _file_section("✎ Zmenene soubory", "#a07000", list(modified_paths)) + + _file_section("✗ Smazane soubory", "#a00000", list(deleted_paths)) + ) + body = f"""

✓ Dropbox Ordinace Backup – {ts}

@@ -265,6 +283,7 @@ def main(): {skipped_row} {report_line} +{files_detail} {skipped_detail}

REPORTER • {ts}