🚨 Fixed DeepSource issues
This commit is contained in:
@@ -297,7 +297,7 @@ class GameInLobby(BaseModel):
|
||||
game_id: uuid.UUID
|
||||
|
||||
|
||||
#
|
||||
# skipcq: PY-W0069
|
||||
# class UserProfileLinks(ormar.Model):
|
||||
# id: int = ormar.Integer(primary_key=True, autoincrement=True)
|
||||
# user: Optional[User] = ormar.ForeignKey(User)
|
||||
|
||||
@@ -41,10 +41,3 @@ class QuizTivityPage(BaseModel):
|
||||
title: str | None
|
||||
type: QuizTivityTypes
|
||||
data: Pdf | Memory | Markdown
|
||||
|
||||
# @validator("type")
|
||||
# def match_type_to_data_type(cls, v, values, **kwargs):
|
||||
# print(values)
|
||||
# if TYPE_CLASS_LIST[v] != type(values["data"]):
|
||||
# raise ValueError("Specified Type doesn't match real data type")
|
||||
# pass
|
||||
|
||||
Reference in New Issue
Block a user