diff --git a/parsers/caves.py b/parsers/caves.py index 4290efc..638adcc 100644 --- a/parsers/caves.py +++ b/parsers/caves.py @@ -170,10 +170,11 @@ def readcaves(): DataIssue.objects.filter(parser='caves ok').delete() DataIssue.objects.filter(parser='entrances').delete() - area_1623, state = Area.objects.update_or_create(short_name = "1623", parent = None) - # This seems to return a tuple, not a single object! i.e. (, True) + print(" - Creating Areas 1623 and 1626") + # This crashes on the server with MariaDB even though a null parent is explicitly allowed. + area_1623, state = Area.objects.update_or_create(short_name = "1623") #print(f' ! - READ CAVES: {area_1623}') - area_1626, state = Area.objects.update_or_create(short_name = "1626", parent = None) + area_1626, state = Area.objects.update_or_create(short_name = "1626") print (" - Setting pending caves") # Do this first, so that these empty entries are overwritten as they get properly created.