From 631ac20c12c4bbc558a3124be62a3e23669289ad Mon Sep 17 00:00:00 2001 From: wookey Date: Mon, 24 Sep 2012 22:38:35 +0100 Subject: [PATCH] Add debug for which entrance file was being read so we get a clue where to look when 'databasereset newcaves' falls over --- parsers/caves.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parsers/caves.py b/parsers/caves.py index 305ee6c..e0232d9 100644 --- a/parsers/caves.py +++ b/parsers/caves.py @@ -11,6 +11,7 @@ def readcaves(): newArea = models.Area(short_name = "1626", parent = None) newArea.save() print "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) print "Caves" @@ -74,7 +75,6 @@ def readentrance(filename): cached_primary_slug = slugs[0]) e.save() primary = True - print "list of " for slug in slugs: print slug, filename cs = models.EntranceSlug(entrance = e,