From c2fc3fd31635a51cd50e3ac9ccbde6e52143ec6b Mon Sep 17 00:00:00 2001 From: WorldTeacher Date: Sat, 7 Jun 2025 17:17:45 +0200 Subject: [PATCH 1/2] chore: fix bug where request site did not color grabbed / available titles --- src/app.py | 8 +++++--- src/templates/requests.html | 4 ++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/app.py b/src/app.py index cfac813..5f0054e 100644 --- a/src/app.py +++ b/src/app.py @@ -325,7 +325,7 @@ async def requests_page(): cache = KomCache() requests = ( cache.fetch_all( - query="SELECT manga_id, title, image grabbed FROM manga_requests" + query="SELECT manga_id, title, image, grabbed FROM manga_requests" ) or [] ) @@ -333,11 +333,13 @@ async def requests_page(): req_ids = [req[0] for req in requests] if req_ids: entries = [ - {"manga_id": req[0], "title": req[1], "image": req[2]} for req in requests + {"manga_id": req[0], "title": req[1], "image": req[2], "grabbed": req[3]} + for req in requests ] else: entries = [] - + log.debug(f"Fetched {len(entries)} requests from the database") + log.debug(f"Requests entries: {entries}") return await render_template("requests.html", requests=entries) @app.route("/delete", methods=["POST"]) diff --git a/src/templates/requests.html b/src/templates/requests.html index 2f93734..3a76ec0 100644 --- a/src/templates/requests.html +++ b/src/templates/requests.html @@ -20,7 +20,7 @@ {% if results %} {% for result in results %} -
+
@@ -44,7 +44,7 @@ {% if requests %}
{% for request in requests %} -
+
Cover -- 2.49.1 From eef6ac4ee009a92654f22aa9c10af4ee22bd813d Mon Sep 17 00:00:00 2001 From: WorldTeacher Date: Sat, 7 Jun 2025 17:21:15 +0200 Subject: [PATCH 2/2] change changelog template to include more parameters --- .gitea/changelog-config.json | 51 ++++++++++++++++++++++++++++++++---- 1 file changed, 46 insertions(+), 5 deletions(-) diff --git a/.gitea/changelog-config.json b/.gitea/changelog-config.json index acbf2d3..bb128ac 100644 --- a/.gitea/changelog-config.json +++ b/.gitea/changelog-config.json @@ -2,7 +2,14 @@ "categories": [ { "title": "## ๐Ÿš€ Features", - "labels": ["add","Add", "Kind/Feature"] + "labels": [ + "add", + "Add", + "Kind/Feature", + "feat", + "Feature", + "Feat" + ] }, { "title": "## ๐Ÿ› Fixes", @@ -18,16 +25,50 @@ "labels": ["docs","Docs", "Kind/Documentation"] }, { - "title": "## ๐Ÿงน Chore", - "labels": ["chore","Chore", "Kind/Chore"] + "title": "## ๐Ÿ› ๏ธ Maintenance", + "labels": [ + "maintenance", + "Maintenance", + "Kind/Maintenance", + "chore", + "Chore", + "Kind/Chore" + ] }, { - "title": "## ๐Ÿ› ๏ธ Maintenance", - "labels": ["maintenance","Maintenance", "Kind/Maintenance"] + "title": "## โช Reverts", + "labels": [ + "revert", + "Revert", + "Kind/Revert", + "Kind/Reverts", + "reverts", + "Reverts" + ] }, { "title": "## ๐Ÿ—‘๏ธ Deprecation", "labels": ["deprecation","Deprecation", "Kind/Deprecation"] + }, + { + "title": "## โšก๏ธ Performance Improvements", + "labels": [ + "perf", + "Perf", + "Kind/Performance" + ] + }, + { + "title": "## ๐ŸŽจ Styling", + "labels": [ + "style", + "Style", + "Kind/Style" + ] + }, + { + "title": "## ๐ŸŽฏ Other Changes", + "labels": [] } ], "label_extractor": [ -- 2.49.1