From a960e7af8e79bda31d0b2a153d08906d3c3e92ad Mon Sep 17 00:00:00 2001 From: Dita Aji Pratama Date: Sun, 29 Jun 2025 22:03:14 +0700 Subject: [PATCH] Add item list on the highlight category detail --- modules/api/highlight/category.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/api/highlight/category.py b/modules/api/highlight/category.py index 165183a..3579ffe 100644 --- a/modules/api/highlight/category.py +++ b/modules/api/highlight/category.py @@ -69,6 +69,8 @@ class category: try: self.cursor.execute("SELECT * FROM `highlight_category` WHERE `id` = %s ; ", (id,) ) d = self.cursor.fetchone() + self.cursor.execute("SELECT * FROM `highlight_catalog` WHERE `category` = %s ; ", (id,) ) + d["catalog"] = self.cursor.fetchall() loggorilla.prcss(APIADDR, "Set Response") response["status" ] = "success" response["desc" ] = "data collected"