diff --git a/classquiz/helpers/__init__.py b/classquiz/helpers/__init__.py index fbb8f8a..254d0ee 100644 --- a/classquiz/helpers/__init__.py +++ b/classquiz/helpers/__init__.py @@ -131,7 +131,7 @@ async def handle_import_from_excel(data: BinaryIO, user: User) -> Quiz: for i, row in enumerate(ws.iter_rows(min_row=14, min_col=2, max_row=100, max_col=8, values_only=True)): if row[0] is None: continue - question = row[0] + question = str(row[0]) if len(question) > 300: raise HTTPException(status_code=400, detail=f"Question {i + 1} is longer than 300") try: diff --git a/frontend/src/lib/i18n/locales/en.json b/frontend/src/lib/i18n/locales/en.json index a54b1fd..ec654cd 100644 --- a/frontend/src/lib/i18n/locales/en.json +++ b/frontend/src/lib/i18n/locales/en.json @@ -235,7 +235,7 @@ "classquiz_quiz": "A ClassQuiz-Quiz", "upload_file_ending": "Upload the file ending in .cqa or .xlsx", "this_side_classquiz": "On this side you can import quizzes, which were exported from ClassQuiz.", - "this_side_classquiz_excel": "You can also upload excel files, if you've filled out the following template.", + "this_side_classquiz_excel": "You can also upload excel files, if you've filled out the following template. If a quiz with the title already exists, it will append the questions to the existing quiz.", "download_template_here": "Download the template" }, "admin_page": {