🐛 Fix StarRail Detail Characters parse_raw

This commit is contained in:
xtaodada 2024-02-06 22:57:13 +08:00
parent 7755abfd1f
commit 98a569c7df
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

View File

@ -207,6 +207,8 @@ class StarRailDetailCharacters(APIModel):
@staticmethod
def _parse(v: Dict[str, Any], key: str = None, value_key: str = None) -> List[Dict[str, Any]]:
"""Parse dict to list."""
if isinstance(v, list):
return v
new_list = []
for k, value in v.items():
if isinstance(value, str):