🐛 Changed meilisearch-things

This commit is contained in:
Mawoka
2022-04-19 21:18:55 +02:00
parent 4e017fa679
commit db2ad70335
3 changed files with 5 additions and 2 deletions
+2
View File
@@ -30,6 +30,8 @@ async def import_quiz(quiz_id: str, user: User) -> Quiz | str:
return "quiz not found"
quiz_questions: list[dict] = []
quiz_id = uuid.uuid4()
meilisearch.delete_index(settings.meilisearch_index)
meilisearch.create_index(settings.meilisearch_index)
for q in quiz.kahoot.questions:
answers: list[QuizAnswer] = []