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"