From 81b38cb5bb35087e2024a4fe44c30a99144c2606 Mon Sep 17 00:00:00 2001 From: Carlos Date: Sun, 26 Apr 2026 16:03:34 -0400 Subject: [PATCH] CSV export: path column now contains directory only Filename was duplicated in both columns; trimmed the basename off path. Co-Authored-By: Claude Opus 4.7 --- app/main.py | 5 ++++- debian/build-deb.sh | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/main.py b/app/main.py index 23598ce..4cecf05 100644 --- a/app/main.py +++ b/app/main.py @@ -705,9 +705,12 @@ def export_csv(): return v for r in rows: + # path column = directory only; filename has the basename already + full = r["path"] or "" + dir_only = full.rsplit("/", 1)[0] if "/" in full else "" writer.writerow([ r["group_id"], r["method"], r["file_id"], - _clean(r["path"]), _clean(r["filename"]), r["file_size"], + _clean(dir_only), _clean(r["filename"]), r["file_size"], r["width"], r["height"], _clean(r["exif_datetime"]), _clean(r["exif_device"]), r["is_keeper"], r["is_redundant"], r["reviewed"], diff --git a/debian/build-deb.sh b/debian/build-deb.sh index 91f085d..1fd5f53 100644 --- a/debian/build-deb.sh +++ b/debian/build-deb.sh @@ -13,7 +13,7 @@ BUILD_DIR="$REPO_ROOT/build/deb" # ── Config ──────────────────────────────────────────────────────────────────── PKG_NAME="dupfinder" -PKG_VERSION="1.0.6" +PKG_VERSION="1.0.7" PKG_ARCH="amd64" DEB_FILE="${PKG_NAME}_${PKG_VERSION}_${PKG_ARCH}.deb"