diff options
author | Philip Sargent <philip.sargent@klebos.com> | 2022-07-19 20:54:46 +0300 |
---|---|---|
committer | Philip Sargent <philip.sargent@klebos.com> | 2022-07-19 20:54:46 +0300 |
commit | 2e14be61a2a7159402b64f063bc4c68fb94e2e28 (patch) | |
tree | 7533602748e83d4b6c2f1c396d74265fb07def4a | |
parent | 6883ff49a07bc77a7491388d757f372c67c82407 (diff) | |
download | troggle-2e14be61a2a7159402b64f063bc4c68fb94e2e28.tar.gz troggle-2e14be61a2a7159402b64f063bc4c68fb94e2e28.tar.bz2 troggle-2e14be61a2a7159402b64f063bc4c68fb94e2e28.zip |
bugfix
-rw-r--r-- | parsers/caves.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/parsers/caves.py b/parsers/caves.py index 638adcc..96497c4 100644 --- a/parsers/caves.py +++ b/parsers/caves.py @@ -172,9 +172,8 @@ def readcaves(): 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") + area_1623= Area.objects.create(short_name = "1623") + area_1626= Area.objects.create(short_name = "1626") print (" - Setting pending caves") # Do this first, so that these empty entries are overwritten as they get properly created. |