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: