summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/models/caves.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/models/caves.py b/core/models/caves.py
index a0ec04b..35b07f2 100644
--- a/core/models/caves.py
+++ b/core/models/caves.py
@@ -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)