fix:作业未定义技能使用次数报错

This commit is contained in:
Elaina 2024-11-25 20:43:56 +08:00
parent 9891b78933
commit feafe65b1d

View file

@ -7,7 +7,7 @@ class Oper(BaseModel):
name: str
skill: Optional[int] = 1
skill_usage: Optional[int] = 0
skill_times: Optional[int] = None
skill_times: Optional[int] = 1
def __eq__(self, other):
if isinstance(other, Oper):