forked from Hay1tsme/artemis
cm: add awaits (fixes #104)
This commit is contained in:
parent
e69149632f
commit
3559d56ccf
@ -339,10 +339,10 @@ class ChuniNew(ChuniBase):
|
|||||||
}
|
}
|
||||||
|
|
||||||
async def handle_cm_get_user_character_api_request(self, data: Dict) -> Dict:
|
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:
|
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:
|
async def handle_roll_gacha_api_request(self, data: Dict) -> Dict:
|
||||||
"""
|
"""
|
||||||
|
@ -125,7 +125,7 @@ class Mai2Universe(Mai2SplashPlus):
|
|||||||
}
|
}
|
||||||
|
|
||||||
async def handle_cm_get_user_item_api_request(self, data: Dict) -> Dict:
|
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:
|
async def handle_cm_get_user_character_api_request(self, data: Dict) -> Dict:
|
||||||
characters = await self.data.item.get_characters(data["userId"])
|
characters = await self.data.item.get_characters(data["userId"])
|
||||||
|
@ -144,7 +144,7 @@ class OngekiBright(OngekiBase):
|
|||||||
}
|
}
|
||||||
|
|
||||||
async def handle_cm_get_user_item_api_request(self, data: Dict) -> Dict:
|
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:
|
async def handle_cm_get_user_gacha_supply_api_request(self, data: Dict) -> Dict:
|
||||||
# not used for now? not sure what it even does
|
# not used for now? not sure what it even does
|
||||||
|
Loading…
Reference in New Issue
Block a user