From 3559d56ccf4c924c96b22cb1e5ca5558954a517b Mon Sep 17 00:00:00 2001 From: Kevin Trocolli Date: Sat, 2 Mar 2024 17:55:41 -0500 Subject: [PATCH] cm: add awaits (fixes #104) --- titles/chuni/new.py | 4 ++-- titles/mai2/universe.py | 2 +- titles/ongeki/bright.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/titles/chuni/new.py b/titles/chuni/new.py index 405c25b..9709f00 100644 --- a/titles/chuni/new.py +++ b/titles/chuni/new.py @@ -339,10 +339,10 @@ class ChuniNew(ChuniBase): } async def handle_cm_get_user_character_api_request(self, data: Dict) -> Dict: - return super().handle_get_user_character_api_request(data) + return await super().handle_get_user_character_api_request(data) async def handle_cm_get_user_item_api_request(self, data: Dict) -> Dict: - return super().handle_get_user_item_api_request(data) + return await super().handle_get_user_item_api_request(data) async def handle_roll_gacha_api_request(self, data: Dict) -> Dict: """ diff --git a/titles/mai2/universe.py b/titles/mai2/universe.py index 774ea60..00353d3 100644 --- a/titles/mai2/universe.py +++ b/titles/mai2/universe.py @@ -125,7 +125,7 @@ class Mai2Universe(Mai2SplashPlus): } async def handle_cm_get_user_item_api_request(self, data: Dict) -> Dict: - super().handle_get_user_item_api_request(data) + await super().handle_get_user_item_api_request(data) async def handle_cm_get_user_character_api_request(self, data: Dict) -> Dict: characters = await self.data.item.get_characters(data["userId"]) diff --git a/titles/ongeki/bright.py b/titles/ongeki/bright.py index aec9182..690a118 100644 --- a/titles/ongeki/bright.py +++ b/titles/ongeki/bright.py @@ -144,7 +144,7 @@ class OngekiBright(OngekiBase): } async def handle_cm_get_user_item_api_request(self, data: Dict) -> Dict: - return self.handle_get_user_item_api_request(data) + return await self.handle_get_user_item_api_request(data) async def handle_cm_get_user_gacha_supply_api_request(self, data: Dict) -> Dict: # not used for now? not sure what it even does