diff --git a/other_ext/kamaz_ai.py b/other_ext/kamaz_ai.py index e5e391b..e0e048a 100644 --- a/other_ext/kamaz_ai.py +++ b/other_ext/kamaz_ai.py @@ -209,7 +209,7 @@ class Extension: print("Sync report list") async with aiohttp.ClientSession(cookies={ "secretkey":os.getenv("BACKEND_SECRETKEY")}) as session: - async with session.post(f"{os.getenv('BACKEND_URL')}/api/discord/report/s", ssl = False) as response: + async with session.get(f"{os.getenv('BACKEND_URL')}/api/discord/report/s", ssl = False) as response: self.reports_list = await response.json() self.kamazai = KamazAI(self.reports_list) print("KamazAI Enabled") @@ -228,7 +228,7 @@ class Extension: async with aiohttp.ClientSession(cookies={ "secretkey":os.getenv("BACKEND_SECRETKEY")}) as session: - async with session.post(f"{os.getenv('BACKEND_URL')}/api/discord/report/{report_id}", ssl = False) as response: + async with session.get(f"{os.getenv('BACKEND_URL')}/api/discord/report/{report_id}", ssl = False) as response: report = await response.json() result = await self.kamazai.predict(report)