Skip to content

Commit

Permalink
Module may not be present in assist char data
Browse files Browse the repository at this point in the history
For en arknights user doFx#0121 the currentEquip field is not present.
  • Loading branch information
thesadru committed Apr 14, 2024
1 parent f367e51 commit 64f4b5c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion arkprts/models/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ class AssistChar(base.BaseModel):
"""Index of the operator."""
skill_index: int = pydantic.Field(alias="skillIndex")
"""Index of the selected skill."""
current_equip: typing.Optional[str] = pydantic.Field(alias="currentEquip")
current_equip: typing.Optional[str] = pydantic.Field(default=None, alias="currentEquip")
"""Currently equipped module."""
tmpl: typing.Mapping[str, base.DDict] = pydantic.Field(default_factory=base.DDict, repr=False)
"""Alternative operator class data. Only for Amiya."""
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[project]
name = "arkprts"
requires-python = ">=3.9"
version = "0.3.6"
version = "0.3.7"
dynamic = [
"dependencies",
"description",
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name="arkprts",
version="0.3.6",
version="0.3.7",
description="Arknights python wrapper.",
url="https://github.com/thesadru/arkprts",
packages=find_packages(exclude=["tests", "tests.*"]),
Expand Down

0 comments on commit 64f4b5c

Please sign in to comment.