This commit is contained in:
Mawoka
2023-12-08 10:40:11 +01:00
parent 046a7af9cf
commit d5ce9f0337
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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:
+1 -1
View File
@@ -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": {