diff options
author | Philip Sargent <philip.sargent@klebos.com> | 2020-06-06 22:51:55 +0100 |
---|---|---|
committer | Philip Sargent <philip.sargent@klebos.com> | 2020-06-06 22:51:55 +0100 |
commit | fda50ed570c886966b056d303965104275221667 (patch) | |
tree | ca4c0de89f887fcf9fdeaba2f07870310d0d9d82 /parsers/caves.py | |
parent | f8a3c8f5bca6e0e99a48a0ebe8577312ad84f56d (diff) | |
download | troggle-fda50ed570c886966b056d303965104275221667.tar.gz troggle-fda50ed570c886966b056d303965104275221667.tar.bz2 troggle-fda50ed570c886966b056d303965104275221667.zip |
attempt to simplify wnt horribly wrong
Diffstat (limited to 'parsers/caves.py')
-rw-r--r-- | parsers/caves.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/parsers/caves.py b/parsers/caves.py index 514aa78..0d2ddfb 100644 --- a/parsers/caves.py +++ b/parsers/caves.py @@ -8,8 +8,8 @@ import troggle.core.models as models import troggle.core.models_caves as models_caves def readcaves(): - # Clear the cave data issues as we are reloading + # Note: these are HTML files in the EXPOWEB repo, not from the loser repo. models.DataIssue.objects.filter(parser='caves').delete() area_1623 = models_caves.Area.objects.update_or_create(short_name = "1623", parent = None) @@ -26,6 +26,7 @@ def readcaves(): def readentrance(filename): + # Note: these are HTML files in the EXPOWEB repo, not from the loser repo. with open(os.path.join(settings.ENTRANCEDESCRIPTIONS, filename)) as f: contents = f.read() context = "in file %s" % filename @@ -89,6 +90,7 @@ def readentrance(filename): primary = False def readcave(filename): + # Note: these are HTML files in the EXPOWEB repo, not from the loser repo. with open(os.path.join(settings.CAVEDESCRIPTIONS, filename)) as f: contents = f.read() context = " in file %s" % filename |