From efc2d55d9e81e2eb4b7b0bdb4110ed85c4adfeae Mon Sep 17 00:00:00 2001 From: Mawoka Date: Sat, 25 Oct 2025 16:21:53 +0200 Subject: [PATCH] Set dummy description if kahoot import doesn't have one --- classquiz/kahoot_importer/import_quiz.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/classquiz/kahoot_importer/import_quiz.py b/classquiz/kahoot_importer/import_quiz.py index 87cf75d..f093da4 100644 --- a/classquiz/kahoot_importer/import_quiz.py +++ b/classquiz/kahoot_importer/import_quiz.py @@ -94,6 +94,8 @@ async def import_quiz(quiz_id: str, user: User) -> Quiz | int: img_obj = await handle_image_upload(quiz.kahoot.cover, user) uploaded_images.append(img_obj) cover = img_obj.id.hex + if quiz.kahoot.description is None or quiz.kahoot.description == "": + quiz.kahoot.description = "Description Missing!" quiz_data = Quiz( id=quiz_id, public=False,