From 04badd51a35c083d0a6ca149c194e4da195e498a Mon Sep 17 00:00:00 2001 From: seria Date: Fri, 9 Aug 2024 08:05:37 +0900 Subject: [PATCH] fix: Fix infinite recursion on zzz.CharacterDetail.icon --- hakushin/models/zzz/character.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hakushin/models/zzz/character.py b/hakushin/models/zzz/character.py index 8f167e4..9dbf8f5 100644 --- a/hakushin/models/zzz/character.py +++ b/hakushin/models/zzz/character.py @@ -245,7 +245,7 @@ def icon(self) -> str: Example: https://api.hakush.in/zzz/UI/IconRoleSelect01.webp """ - return self.icon.replace("Role", "RoleSelect") + return self.image.replace("Role", "RoleSelect") @field_validator("info", mode="before") @classmethod