summaryrefslogtreecommitdiffstats
path: root/parsers
diff options
context:
space:
mode:
authorwookey <devnull@localhost>2012-09-24 22:38:35 +0100
committerwookey <devnull@localhost>2012-09-24 22:38:35 +0100
commit631ac20c12c4bbc558a3124be62a3e23669289ad (patch)
treee86992414ed959d586d1674cb9a76b2690a11edd /parsers
parent6060ae1c08f742813e8ba54656c21736a6830f71 (diff)
downloadtroggle-631ac20c12c4bbc558a3124be62a3e23669289ad.tar.gz
troggle-631ac20c12c4bbc558a3124be62a3e23669289ad.tar.bz2
troggle-631ac20c12c4bbc558a3124be62a3e23669289ad.zip
Add debug for which entrance file was being read so we get a clue where to look when 'databasereset newcaves' falls over
Diffstat (limited to 'parsers')
-rw-r--r--parsers/caves.py2
1 files changed, 1 insertions, 1 deletions
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 <Slug> <Filename>"
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 <Slug> <Filename>"
for slug in slugs:
print slug, filename
cs = models.EntranceSlug(entrance = e,