From c43ec5c75d8a0a7c28cf829b9d91ecabac515d6e Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Mon, 6 May 2024 18:23:36 +0200 Subject: pass group mode to sub-galleries --- bin/pyggle | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/pyggle b/bin/pyggle index 8b91b6a..0d086d7 100755 --- a/bin/pyggle +++ b/bin/pyggle @@ -790,11 +790,12 @@ if __name__ == "__main__": write_gallery(html_buf, "index.html", thumbnails, group=args.group) - if args.group_files: + if args.group_files != "none": thumbnail_keys = list(sorted(set(map(lambda t: t.file_key, thumbnails)))) for thumbnail_key in thumbnail_keys: write_gallery( html_buf, f"{thumbnail_key}.html", list(filter(lambda t: t.file_key == thumbnail_key, thumbnails)), + group=args.group, ) -- cgit v1.2.3