3
2
forked from Dniel97/artemis

fix coroutine CardMakerReader.read_*** was never awaited (#105)

Reviewed-on: Hay1tsme/artemis#105
Co-authored-by: zaphkito <zaphkito@noreply.gitea.tendokyu.moe>
Co-committed-by: zaphkito <zaphkito@noreply.gitea.tendokyu.moe>
This commit is contained in:
zaphkito 2024-03-02 22:25:54 +00:00 committed by Hay1tsme
parent f708b8ea4f
commit 91f49f52cc

View File

@ -59,10 +59,10 @@ class CardMakerReader(BaseReader):
if self.bin_dir is not None: if self.bin_dir is not None:
data_dir = self._get_card_maker_directory(self.bin_dir) data_dir = self._get_card_maker_directory(self.bin_dir)
self.read_chuni_card(f"{data_dir}/CHU/Data/A000/card") await self.read_chuni_card(f"{data_dir}/CHU/Data/A000/card")
self.read_chuni_gacha(f"{data_dir}/CHU/Data/A000/gacha") await self.read_chuni_gacha(f"{data_dir}/CHU/Data/A000/gacha")
self.read_mai2_card(f"{data_dir}/MAI/Data/A000/card") await self.read_mai2_card(f"{data_dir}/MAI/Data/A000/card")
for file, func in static_datas.items(): for file, func in static_datas.items():
if os.path.exists(f"{self.bin_dir}/MU3/{file}"): if os.path.exists(f"{self.bin_dir}/MU3/{file}"):
read_csv = getattr(CardMakerReader, func) read_csv = getattr(CardMakerReader, func)