From bc93d34edf40620305b1f8d8e0c01e48b81691d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B4=9B=E6=B0=B4=E5=B1=85=E5=AE=A4?= Date: Wed, 6 Sep 2023 11:57:35 +0800 Subject: [PATCH] :bug: Fix Validation Error for `Diary` --- simnet/models/genshin/diary.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/simnet/models/genshin/diary.py b/simnet/models/genshin/diary.py index 81f468e..e1976f0 100644 --- a/simnet/models/genshin/diary.py +++ b/simnet/models/genshin/diary.py @@ -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")