mirror of
https://github.com/PaiGramTeam/SIMNet.git
synced 2024-11-16 12:02:17 +00:00
🐛 Fix StarRail Detail Characters parse_raw
This commit is contained in:
parent
7755abfd1f
commit
98a569c7df
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user