.
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user