mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-12-26 19:35:37 +00:00
🐛 Fix ValidationError in wish log rank nickname empty
This commit is contained in:
parent
641e58c98b
commit
936456335b
@ -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 pydantic import BaseModel
|
||||||
from telegram import InlineKeyboardButton, InlineKeyboardMarkup
|
from telegram import InlineKeyboardButton, InlineKeyboardMarkup
|
||||||
@ -28,7 +28,7 @@ if TYPE_CHECKING:
|
|||||||
class RankPlayerModel(BaseModel):
|
class RankPlayerModel(BaseModel):
|
||||||
player_id: int
|
player_id: int
|
||||||
num: int
|
num: int
|
||||||
nickname: str
|
nickname: Optional[str]
|
||||||
score_1: int
|
score_1: int
|
||||||
score_2: float
|
score_2: float
|
||||||
score_3: float
|
score_3: float
|
||||||
|
Loading…
Reference in New Issue
Block a user