mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2024-11-22 07:11:52 +00:00
another attempt to avoid non-null parent pseudo error
This commit is contained in:
parent
1395ac76e9
commit
d9d75b3aee
@ -170,10 +170,11 @@ def readcaves():
|
|||||||
DataIssue.objects.filter(parser='caves ok').delete()
|
DataIssue.objects.filter(parser='caves ok').delete()
|
||||||
DataIssue.objects.filter(parser='entrances').delete()
|
DataIssue.objects.filter(parser='entrances').delete()
|
||||||
|
|
||||||
area_1623, state = Area.objects.update_or_create(short_name = "1623", parent = None)
|
print(" - Creating Areas 1623 and 1626")
|
||||||
# This seems to return a tuple, not a single object! i.e. (<Area: 1623>, True)
|
# 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}')
|
#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")
|
print (" - Setting pending caves")
|
||||||
# Do this first, so that these empty entries are overwritten as they get properly created.
|
# Do this first, so that these empty entries are overwritten as they get properly created.
|
||||||
|
Loading…
Reference in New Issue
Block a user