diff options
-rw-r--r-- | parsers/caves.py | 3 | ||||
-rw-r--r-- | templates/base.html | 2 |
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> |