This commit is contained in:
Ross
2024-10-07 17:12:58 +01:00
parent 1e55d195e9
commit 7b938291ce
+2
View File
@@ -26,6 +26,7 @@ class Command(BaseCommand):
entry.questions = entry.questions + "\n" + row.find_all("td")[0].text entry.questions = entry.questions + "\n" + row.find_all("td")[0].text
rows = rows - 1 rows = rows - 1
if rows == 0: if rows == 0:
entry.questions_original = entry.questions
entry.save() entry.save()
continue continue
@@ -46,6 +47,7 @@ class Command(BaseCommand):
if cells[0].has_attr("rowspan"): if cells[0].has_attr("rowspan"):
rows = int(cells[0]["rowspan"]) - 1 rows = int(cells[0]["rowspan"]) - 1
else: else:
entry.questions_original = entry.questions
entry.save() entry.save()
#Entry.objects.all().delete() #Entry.objects.all().delete()