From 92af7427822562d5a55f52004122a90e9b2e91ff Mon Sep 17 00:00:00 2001 From: xtaodada Date: Wed, 4 Dec 2024 21:27:26 +0800 Subject: [PATCH] :bug: Fix ValidationError in wish log rank nickname empty --- plugins/zzz/signal_log_rank.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/zzz/signal_log_rank.py b/plugins/zzz/signal_log_rank.py index 9d78eb3..ec11d6d 100644 --- a/plugins/zzz/signal_log_rank.py +++ b/plugins/zzz/signal_log_rank.py @@ -1,4 +1,4 @@ -from typing import TYPE_CHECKING, List, Tuple, Dict +from typing import TYPE_CHECKING, List, Tuple, Dict, Optional from pydantic import BaseModel from telegram import InlineKeyboardButton, InlineKeyboardMarkup @@ -28,7 +28,7 @@ if TYPE_CHECKING: class RankPlayerModel(BaseModel): player_id: int num: int - nickname: str + nickname: Optional[str] score_1: int score_2: float score_3: float