summaryrefslogtreecommitdiffstats
path: root/parsers
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@klebos.com>2022-07-05 15:57:49 +0300
committerPhilip Sargent <philip.sargent@klebos.com>2022-07-05 15:57:49 +0300
commit5d7d2b82b2f47b748a589d946cc52a2e1e8f2893 (patch)
tree6f2af024b23906ee4b01d0cffa9cce0710a3e865 /parsers
parent779afc2f2ae84957517e3df22e69d95bf3852887 (diff)
downloadtroggle-5d7d2b82b2f47b748a589d946cc52a2e1e8f2893.tar.gz
troggle-5d7d2b82b2f47b748a589d946cc52a2e1e8f2893.tar.bz2
troggle-5d7d2b82b2f47b748a589d946cc52a2e1e8f2893.zip
Fixing non-null error, even though it should be allowed
Diffstat (limited to 'parsers')
-rw-r--r--parsers/caves.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/parsers/caves.py b/parsers/caves.py
index 21f2b3f..6b73c13 100644
--- a/parsers/caves.py
+++ b/parsers/caves.py
@@ -149,9 +149,11 @@ def readcaves():
with transaction.atomic():
print(" - Deleting Caves and Entrances")
+ Area.objects.all().delete()
Cave.objects.all().delete()
Entrance.objects.all().delete()
# Clear the cave data issues and the caves as we are reloading
+ DataIssue.objects.filter(parser='areas').delete()
DataIssue.objects.filter(parser='caves').delete()
DataIssue.objects.filter(parser='caves ok').delete()
DataIssue.objects.filter(parser='entrances').delete()