diff options
author | wookey <devnull@localhost> | 2013-06-24 01:30:17 +0100 |
---|---|---|
committer | wookey <devnull@localhost> | 2013-06-24 01:30:17 +0100 |
commit | 511c379fe09f99d9b54b175f0355f6cc3cf092c2 (patch) | |
tree | a52d10c191cc4d9c1167c0e84d999908c11b2c19 | |
parent | 25c951b250630bd5730262c2b2f4ad4c9051a0cc (diff) | |
download | troggle-511c379fe09f99d9b54b175f0355f6cc3cf092c2.tar.gz troggle-511c379fe09f99d9b54b175f0355f6cc3cf092c2.tar.bz2 troggle-511c379fe09f99d9b54b175f0355f6cc3cf092c2.zip |
Add comment to identifycavedir function
and remove now-disused special-case filename
-rw-r--r-- | core/views_survex.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/views_survex.py b/core/views_survex.py index 8e7ac1e..95bdc70 100644 --- a/core/views_survex.py +++ b/core/views_survex.py @@ -210,7 +210,9 @@ def err(request, survex_file): + def identifycavedircontents(gcavedir): + # find the primary survex file in each cave directory name = os.path.split(gcavedir)[1] subdirs = [ ] subsvx = [ ] @@ -229,7 +231,7 @@ def identifycavedircontents(gcavedir): elif f[-4:] == ".svx": nf = f[:-4] - if nf.lower() == name.lower() or nf[:3] == "all" or (name, nf) in [("144arge", "144"), ("resurvey2005", "145-2005"), ("cucc", "cu115")]: + 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) |