Spaces:
Running
Running
sghorbal commited on
Commit ·
97e590c
1
Parent(s): 126d97e
resolve warning
Browse files- src/entity/match.py +1 -1
src/entity/match.py
CHANGED
|
@@ -63,7 +63,7 @@ class MatchApiBase(BaseModel):
|
|
| 63 |
fk_winner_id: int
|
| 64 |
fk_loser_id: int
|
| 65 |
|
| 66 |
-
model_config: ClassVar[ConfigDict] = ConfigDict(
|
| 67 |
|
| 68 |
class MatchApiDetail(MatchApiBase):
|
| 69 |
winner: Optional[PlayerApiDetail]
|
|
|
|
| 63 |
fk_winner_id: int
|
| 64 |
fk_loser_id: int
|
| 65 |
|
| 66 |
+
model_config: ClassVar[ConfigDict] = ConfigDict(from_attributes=True)
|
| 67 |
|
| 68 |
class MatchApiDetail(MatchApiBase):
|
| 69 |
winner: Optional[PlayerApiDetail]
|