Skip to content

Commit

Permalink
fix: Fix PLC0206
Browse files Browse the repository at this point in the history
  • Loading branch information
seriaati committed Jun 16, 2024
1 parent 4f1e1f7 commit d54f31d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ambr/models/abyss.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def _convert_enemies(cls, v: dict[str, dict[str, Any]]) -> dict[str, AbyssEnemy]
@field_validator("abyss_items", mode="before")
def _convert_abyss_items(cls, v: dict[str, dict[str, Any]]) -> list[Abyss]:
result: list[Abyss] = []
for item_id in v:
v[item_id]["openTime"] = v[item_id]["schedule"]["openTime"]
result.append(Abyss(**v[item_id]))
for item_data in v.values():
item_data["openTime"] = item_data["schedule"]["openTime"]
result.append(Abyss(**item_data))
return result

0 comments on commit d54f31d

Please sign in to comment.