summaryrefslogtreecommitdiffstats
path: root/parsers
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2024-06-29 12:08:33 +0300
committerPhilip Sargent <philip.sargent@gmail.com>2024-06-29 12:12:16 +0300
commit24a97b9dbde259a3ec5a70d8e62090d701549c3c (patch)
treeae013f8f40d5b3ed82db5c86cdb05540b13ac94c /parsers
parent897cdf9aee04b946c1aa5cfe0b559f2a8b5a1f9a (diff)
downloadtroggle-24a97b9dbde259a3ec5a70d8e62090d701549c3c.tar.gz
troggle-24a97b9dbde259a3ec5a70d8e62090d701549c3c.tar.bz2
troggle-24a97b9dbde259a3ec5a70d8e62090d701549c3c.zip
fixing entrance import messages
Diffstat (limited to 'parsers')
-rw-r--r--parsers/caves.py4
1 files 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