forked from expo/troggle
Add debug for which entrance file was being read so we get a clue where to look when 'databasereset newcaves' falls over
This commit is contained in:
parent
6060ae1c08
commit
631ac20c12
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user