Add item list on the highlight category detail

This commit is contained in:
Dita Aji Pratama 2025-06-29 22:03:14 +07:00
parent 43319c914a
commit a960e7af8e

View File

@ -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"