From 2e14be61a2a7159402b64f063bc4c68fb94e2e28 Mon Sep 17 00:00:00 2001 From: Philip Sargent <philip.sargent@klebos.com> Date: Tue, 19 Jul 2022 20:54:46 +0300 Subject: [PATCH] bugfix --- parsers/caves.py | 5 ++--- 1 file 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.