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 | 99ea6778ad2a31ccbffba2b21b566eb0c11c6c55 (patch) | |
tree | c375b872a2bfb4653b44fb37adcc8c2b94e1ccff /core/views_survex.py | |
parent | ccd80e74f880b665e888ddfad23a852c9bb063cb (diff) | |
download | troggle-99ea6778ad2a31ccbffba2b21b566eb0c11c6c55.tar.gz troggle-99ea6778ad2a31ccbffba2b21b566eb0c11c6c55.tar.bz2 troggle-99ea6778ad2a31ccbffba2b21b566eb0c11c6c55.zip |
Add comment to identifycavedir function
and remove now-disused special-case filename
Diffstat (limited to 'core/views_survex.py')
-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) |