From 511c379fe09f99d9b54b175f0355f6cc3cf092c2 Mon Sep 17 00:00:00 2001 From: wookey Date: Mon, 24 Jun 2013 01:30:17 +0100 Subject: [PATCH] Add comment to identifycavedir function and remove now-disused special-case filename --- core/views_survex.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)