From 9961c31e735f8a7568c6cde8e3644cb9e3c768e5 Mon Sep 17 00:00:00 2001 From: Sam Wenham Date: Mon, 19 Jan 2015 21:28:35 +0000 Subject: [PATCH] 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 --- parsers/caves.py | 3 ++- 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 " 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 @@ 161 | 204 | 258 | - Expo2011 | Expo2012 | Expo2013 | + Expo2014 | Django admin