mirror of
https://github.com/grey-cat-1908/formaptix-server.git
synced 2024-11-11 18:57:27 +03:00
fix
This commit is contained in:
parent
d36af3ad73
commit
091b0a7968
1 changed files with 6 additions and 5 deletions
|
@ -121,6 +121,7 @@ class Answer(BaseModel):
|
||||||
for question in questions:
|
for question in questions:
|
||||||
if question.required and question.id not in uuids:
|
if question.required and question.id not in uuids:
|
||||||
raise ValueError(AnswerError.REQUIRED_QUIESTION_NOT_ANSWERED.value)
|
raise ValueError(AnswerError.REQUIRED_QUIESTION_NOT_ANSWERED.value)
|
||||||
|
if uuids.get(question.id):
|
||||||
if question.question_type != uuids[question.id].question_type:
|
if question.question_type != uuids[question.id].question_type:
|
||||||
raise ValueError(AnswerError.REQUIRED_QUIESTION_NOT_ANSWERED.value)
|
raise ValueError(AnswerError.REQUIRED_QUIESTION_NOT_ANSWERED.value)
|
||||||
uuids[question.id].validate(question)
|
uuids[question.id].validate(question)
|
||||||
|
|
Loading…
Reference in a new issue