summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@klebos.com>2020-06-30 17:59:53 +0100
committerPhilip Sargent <philip.sargent@klebos.com>2020-06-30 17:59:53 +0100
commit514887d19ff3553e4ef5949fcc80a76690ef8729 (patch)
treef1c67c64fad66426e8c96d4e136b46aa951e6210
parentae892a07d4a65d4e6545e5e560118917b028e060 (diff)
downloadtroggle-514887d19ff3553e4ef5949fcc80a76690ef8729.tar.gz
troggle-514887d19ff3553e4ef5949fcc80a76690ef8729.tar.bz2
troggle-514887d19ff3553e4ef5949fcc80a76690ef8729.zip
Fix needed for pending caves with no xml file
-rw-r--r--parsers/caves.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/parsers/caves.py b/parsers/caves.py
index ff87bcd..d1e7406 100644
--- a/parsers/caves.py
+++ b/parsers/caves.py
@@ -30,13 +30,14 @@ def readcaves():
try:
cave = models_caves.Cave(
unofficial_number = k,
- official_name = "Pending cave write-up - creating as empty object. No XML file available yet.",
- notes="_Survex file found in loser repo but no description in expoweb")
+# official_name = "",
+ underground_description = "Pending cave write-up - creating as empty object. No XML file available yet.",
+ notes="_Survex file found in loser repo but no description in expoweb")
if cave:
cave.save() # must save to have id before foreign keys work
cave.area = area_1623
cave.save()
- message = " ! {} {}".format(cave.unofficial_number, cave.official_name)
+ message = " ! {} {}".format(cave.unofficial_number, cave.underground_description)
DataIssue.objects.create(parser='caves', message=message)
print(message)
else: