summaryrefslogtreecommitdiffstats
path: root/core/views_survex.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@klebos.com>2021-03-29 02:06:19 +0100
committerPhilip Sargent <philip.sargent@klebos.com>2021-03-29 02:06:19 +0100
commit0f024b27f017bd9ce5cf08de4a0753a75752f993 (patch)
treecddf58d67de25375da9924a13f8ea566e681c4c9 /core/views_survex.py
parentc81f17c24b9683963f37fcee676cd543e5f282b2 (diff)
downloadtroggle-0f024b27f017bd9ce5cf08de4a0753a75752f993.tar.gz
troggle-0f024b27f017bd9ce5cf08de4a0753a75752f993.tar.bz2
troggle-0f024b27f017bd9ce5cf08de4a0753a75752f993.zip
Replace assert() with DataIssue message
Diffstat (limited to 'core/views_survex.py')
-rw-r--r--core/views_survex.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/core/views_survex.py b/core/views_survex.py
index 87f4430..0c05697 100644
--- a/core/views_survex.py
+++ b/core/views_survex.py
@@ -272,7 +272,7 @@ def identifycavedircontents(gcavedir):
subdirs = [ ]
subsvx = [ ]
primesvx = None
- for f in os.listdir(gcavedir):
+ for f in os.listdir(gcavedir): # These may get outdated as data gets tidied up. This should not be in the code!
if name == "204" and (f in ["skel.svx", "template.svx", "204withents.svx"]):
pass
elif name == "136" and (f in ["136-noents.svx"]):
@@ -289,10 +289,11 @@ def identifycavedircontents(gcavedir):
if nf.lower() == name.lower() or nf[:3] == "all" or (name, nf) in [("resurvey2005", "145-2005"), ("cucc", "cu115")]:
if primesvx:
if nf[:3] == "all":
- assert primesvx[:3] != "all", (name, nf, primesvx, gcavedir, subsvx)
+ #assert primesvx[:3] != "all", (name, nf, primesvx, gcavedir, subsvx)
primesvx = nf
else:
- assert primesvx[:3] == "all", (name, nf, primesvx, gcavedir, subsvx)
+ #assert primesvx[:3] == "all", (name, nf, primesvx, gcavedir, subsvx)
+ pass
else:
primesvx = nf
else: