2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-03-13 13:51:48 +00:00

Make sure that cave parser only reads .html files in cave_data dir (to stop foo~ causing 'duplicate cave' error)

This commit is contained in:
expoonserver 2018-06-18 23:17:05 +01:00
parent 6805bcb690
commit 1ad58d6b5d

@ -17,6 +17,7 @@ def readcaves():
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
if filename.endswith('.html'):
readcave(filename)
def readentrance(filename):