.
This commit is contained in:
@@ -26,6 +26,7 @@ class Command(BaseCommand):
|
||||
entry.questions = entry.questions + "\n" + row.find_all("td")[0].text
|
||||
rows = rows - 1
|
||||
if rows == 0:
|
||||
entry.questions_original = entry.questions
|
||||
entry.save()
|
||||
continue
|
||||
|
||||
@@ -46,6 +47,7 @@ class Command(BaseCommand):
|
||||
if cells[0].has_attr("rowspan"):
|
||||
rows = int(cells[0]["rowspan"]) - 1
|
||||
else:
|
||||
entry.questions_original = entry.questions
|
||||
entry.save()
|
||||
|
||||
#Entry.objects.all().delete()
|
||||
|
||||
Reference in New Issue
Block a user