Skip to content

Commit

Permalink
Return Game.ZZZ for GenshinAccount.game
Browse files Browse the repository at this point in the history
  • Loading branch information
seriaati committed Jul 5, 2024
1 parent 21ccb3c commit 4f1b2eb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions genshin/models/hoyolab/record.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,12 @@ class GenshinAccount(APIModel):
def game(self) -> types.Game:
if "hk4e" in self.game_biz:
return types.Game.GENSHIN
elif "bh3" in self.game_biz:
if "bh3" in self.game_biz:
return types.Game.HONKAI
elif "hkrpg" in self.game_biz:
if "hkrpg" in self.game_biz:
return types.Game.STARRAIL
if "nap" in self.game_biz:
return types.Game.ZZZ

try:
return types.Game(self.game_biz)
Expand Down

0 comments on commit 4f1b2eb

Please sign in to comment.