mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-17 16:47:06 +00:00
protect against both sorts of capitalisation mismatches
This commit is contained in:
@@ -464,6 +464,11 @@ def GetCaveLookup():
|
||||
message = f" - Warning, capitalisation error in alias list. cave for id '{a}' does not exist but {a.lower()} does."
|
||||
print(message)
|
||||
DataIssue.objects.update_or_create(parser="aliases", message=message)
|
||||
elif a.upper() in Gcavelookup:
|
||||
Gcavelookup[key] = Gcavelookup[a.upper()]
|
||||
message = f" - Warning, capitalisation error in alias list. cave for id '{a}' does not exist but {a.upper()} does."
|
||||
print(message)
|
||||
DataIssue.objects.update_or_create(parser="aliases", message=message)
|
||||
else:
|
||||
message = f" * Coding or cave existence mistake, cave for id '{a}' does not exist. Expecting to set key alias '{k}' to it"
|
||||
DataIssue.objects.update_or_create(parser="aliases", message=message)
|
||||
|
||||
Reference in New Issue
Block a user