Skip to content

Commit

Permalink
fix: accept question date type in framework update (#1461)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohamed-Hacene authored Feb 4, 2025
1 parent 8f1e78d commit d05d330
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ def update_library(self) -> Union[str, None]:
if answer["answer"] not in question["question_choices"]:
answer["answer"] = ""

elif question_type != "text":
elif question_type not in ["text", "date"]:
raise NotImplementedError(
f"The question type '{question_type}' hasn't been implemented !"
)
Expand Down

0 comments on commit d05d330

Please sign in to comment.