summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Wenham <sam@wenhams.co.uk>2015-01-19 21:28:35 +0000
committerSam Wenham <sam@wenhams.co.uk>2015-01-19 21:28:35 +0000
commit3010961383824522d5361cab7e485b7e1d03c578 (patch)
treeb8fea1de0e0333456b7d469a960cb8f0a8c94720
parentd75862bc41d284d330c07f90e573162113b58fa7 (diff)
downloadtroggle-3010961383824522d5361cab7e485b7e1d03c578.tar.gz
troggle-3010961383824522d5361cab7e485b7e1d03c578.tar.bz2
troggle-3010961383824522d5361cab7e485b7e1d03c578.zip
Try and ignore files that don't end .html (We really need to change to .xml) eg .html.orig!!
Change the index on troggle to move on with the year
-rw-r--r--parsers/caves.py3
-rw-r--r--templates/base.html2
2 files changed, 3 insertions, 2 deletions
diff --git a/parsers/caves.py b/parsers/caves.py
index d4d53cd..5c4ceb5 100644
--- a/parsers/caves.py
+++ b/parsers/caves.py
@@ -13,7 +13,8 @@ def readcaves():
print "Reading Entrances"
#print "list of <Slug> <Filename>"
for filename in os.walk(settings.ENTRANCEDESCRIPTIONS).next()[2]: #Should be a better way of getting a list of files
- readentrance(filename)
+ if filename.endswith('.html'):
+ readentrance(filename)
print "Reading Caves"
for filename in os.walk(settings.CAVEDESCRIPTIONS).next()[2]: #Should be a better way of getting a list of files
readcave(filename)
diff --git a/templates/base.html b/templates/base.html
index fda3617..76e34fa 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -38,9 +38,9 @@
<a href="{% url survexcavessingle 161 %}">161</a> |
<a href="{% url survexcavessingle 204 %}">204</a> |
<a href="{% url survexcavessingle 258 %}">258</a> |
- <a href="{% url expedition 2011 %}">Expo2011</a> |
<a href="{% url expedition 2012 %}">Expo2012</a> |
<a href="{% url expedition 2013 %}">Expo2013</a> |
+ <a href="{% url expedition 2014 %}">Expo2014</a> |
<a href="/admin/">Django admin</a>
</div>