From d78e70703d500c267a2981ba0104ae3688983781 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 30 Dec 2019 00:07:48 +0100 Subject: [PATCH] fix /api/discord/cv --- royalpack/stars/__init__.py | 4 ++-- royalpack/stars/api_discord_cv.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/royalpack/stars/__init__.py b/royalpack/stars/__init__.py index 161f9d48..cf2041b8 100644 --- a/royalpack/stars/__init__.py +++ b/royalpack/stars/__init__.py @@ -3,7 +3,7 @@ from .api_user_list import ApiUserListStar from .api_user_get import ApiUserGetStar from .api_diario_list import ApiDiarioListStar from .api_diario_get import ApiDiarioGetStar -# from .api_discord_cv import ApiDiscordCvStar +from .api_discord_cv import ApiDiscordCvStar # Enter the PageStars of your Pack here! available_page_stars = [ @@ -11,7 +11,7 @@ available_page_stars = [ ApiUserGetStar, ApiDiarioListStar, ApiDiarioGetStar, - # ApiDiscordCvStar, + ApiDiscordCvStar, ] # Enter the ExceptionStars of your Pack here! diff --git a/royalpack/stars/api_discord_cv.py b/royalpack/stars/api_discord_cv.py index 8b1e268e..b6b4e8ef 100644 --- a/royalpack/stars/api_discord_cv.py +++ b/royalpack/stars/api_discord_cv.py @@ -8,5 +8,5 @@ class ApiDiscordCvStar(PageStar): path = "/api/discord/cv" async def page(self, request: Request) -> JSONResponse: - response = await self.constellation.call_herald_event("discord", "discord_cv") + response = await self.interface.call_herald_event("discord", "discord_cv") return JSONResponse(response)