From 24a97b9dbde259a3ec5a70d8e62090d701549c3c Mon Sep 17 00:00:00 2001 From: Philip Sargent <philip.sargent@gmail.com> Date: Sat, 29 Jun 2024 12:08:33 +0300 Subject: [PATCH] fixing entrance import messages --- parsers/caves.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parsers/caves.py b/parsers/caves.py index 37d2642..a351bd1 100644 --- a/parsers/caves.py +++ b/parsers/caves.py @@ -713,7 +713,7 @@ def read_cave(filename, mvf=None, cave=None): mvtext = f"mv {filename} {correctslug}.html" #print(mvtext) if filename != f"{correctslug}.html" : - message = f" ! Filename is not the same as the cave slug '{slug}' != '{areacode}-{unofficial_number}' {url=} in file {filename} so use troggle/mvscript.sh to fix." + message = f" ! Filename is not the same as the cave slug '{slug}' != '{areacode}-{unofficial_number}' {url=} in file {filename} so use /tmp/mvscript.sh to fix." DataIssue.objects.create(parser="caves", message=message, url=msgurl) # url here is for where the file actually is, for editing mvf.write(mvtext + "\n") print(message) @@ -932,7 +932,7 @@ def readcaves(): with transaction.atomic(): print(" - Reading Caves from cave descriptions xml files") - mvscript = "mvscript.sh" # in .gitignore so no problem creating it on server in /troggle/ + mvscript = "/tmp/mvscript.sh" # in .gitignore so no problem creating it on server in /troggle/ with open(mvscript, "w") as mvf: # overwrite mvf.write(f"cd {CAVEDESCRIPTIONS}\n") for filename in next(os.walk(CAVEDESCRIPTIONS))[2]: # Should be a better way of getting a list of files