mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-17 09:57:17 +00:00
cover case when cave data is re-parsed online
This commit is contained in:
@@ -754,6 +754,7 @@ def read_cave(filename, mvf=None, cave=None):
|
|||||||
if filename != f"{correctslug}.html" :
|
if filename != f"{correctslug}.html" :
|
||||||
message = f" ! Filename is not the same as the cave slug '{slug}' != '{areacode}-{unofficial_number}' {url=} in file {filename} IGNORING caveslug field in the .html file."
|
message = f" ! Filename is not the same as the cave slug '{slug}' != '{areacode}-{unofficial_number}' {url=} in file {filename} IGNORING caveslug field in the .html file."
|
||||||
DataIssue.objects.create(parser="caves", message=message, url=msgurl) # url here is for where the file actually is, for editing
|
DataIssue.objects.create(parser="caves", message=message, url=msgurl) # url here is for where the file actually is, for editing
|
||||||
|
if mvf: # this can be called online, not just when a databaseReset is done, so mvf may be None
|
||||||
mvf.write(mvtext + "\n")
|
mvf.write(mvtext + "\n")
|
||||||
print(message)
|
print(message)
|
||||||
return correctslug
|
return correctslug
|
||||||
|
|||||||
Reference in New Issue
Block a user