Skip to content

Commit

Permalink
🐛 Fix StarRail Detail Characters parse_raw
Browse files Browse the repository at this point in the history
  • Loading branch information
omg-xtao committed Feb 6, 2024
1 parent 7755abf commit 98a569c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions simnet/models/starrail/chronicle/characters.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 98a569c

Please sign in to comment.