From e4bf7cf1a4bb9b9585aaf166b52881bbfd41e48e Mon Sep 17 00:00:00 2001 From: lychang <632945494@qq.com> Date: Fri, 20 Mar 2026 03:36:34 +0800 Subject: [PATCH] init --- src/database.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/database.rs b/src/database.rs index 1840efc..afb7690 100644 --- a/src/database.rs +++ b/src/database.rs @@ -56,6 +56,7 @@ impl Database { a.created_at FROM albums a LEFT JOIN images img ON img.album_id = a.id + GROUP BY a.id, a.title, a.document, a.description, a.cover_image_id, a.created_at ORDER BY a.document DESC "# ) @@ -104,7 +105,7 @@ impl Database { LEFT JOIN images img ON img.album_id = a.id LEFT JOIN images i ON i.id = a.cover_image_id WHERE a.title LIKE ? - GROUP BY a.id, a.created_at + GROUP BY a.id, a.title, a.document, a.description, a.cover_image_id, a.created_at ORDER BY a.created_at DESC "# )