diff --git a/parsers/caves.py b/parsers/caves.py index 5c4ceb5..63c9f94 100644 --- a/parsers/caves.py +++ b/parsers/caves.py @@ -14,10 +14,11 @@ def readcaves(): #print "list of " for filename in os.walk(settings.ENTRANCEDESCRIPTIONS).next()[2]: #Should be a better way of getting a list of files if filename.endswith('.html'): - readentrance(filename) + 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) + if filename.endswith('.html'): + readcave(filename) def readentrance(filename): with open(os.path.join(settings.ENTRANCEDESCRIPTIONS, filename)) as f: