🐛 Fixes #316
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user