summaryrefslogtreecommitdiffstats
path: root/parsers
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 /parsers
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
Diffstat (limited to 'parsers')
-rw-r--r--parsers/caves.py3
1 files changed, 2 insertions, 1 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)