mirror of
https://github.com/PaiGramTeam/SIMNet.git
synced 2024-11-16 03:55:28 +00:00
🐛 Fix Validation Error for Diary
This commit is contained in:
parent
300d3aebc3
commit
bc93d34edf
@ -45,16 +45,11 @@ class MonthDiaryData(APIModel):
|
||||
categories: List of diary categories.
|
||||
"""
|
||||
|
||||
def __init__(self, **data):
|
||||
if data.get("primogem_rate"):
|
||||
data["primogems_rate"] = data.pop("primogem_rate")
|
||||
super().__init__(**data)
|
||||
|
||||
current_primogems: int
|
||||
current_mora: int
|
||||
last_primogems: int
|
||||
last_mora: int
|
||||
primogems_rate: int
|
||||
primogems_rate: int = Field(aliases="primogem_rate")
|
||||
mora_rate: int
|
||||
categories: List[DiaryActionCategory] = Field(alias="group_by")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user