summaryrefslogtreecommitdiffstats
path: root/core/models/caves.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2023-10-05 14:11:05 +0300
committerPhilip Sargent <philip.sargent@gmail.com>2023-10-05 14:11:05 +0300
commitfcfa59cdf7273c97c022fb1ba2b249f4199811ba (patch)
treebdd48f9ecbd62c8286d1b270fed4131d45e8fe98 /core/models/caves.py
parenteae919e5b213d03d29b9103b8db2534e506e81d1 (diff)
downloadtroggle-fcfa59cdf7273c97c022fb1ba2b249f4199811ba.tar.gz
troggle-fcfa59cdf7273c97c022fb1ba2b249f4199811ba.tar.bz2
troggle-fcfa59cdf7273c97c022fb1ba2b249f4199811ba.zip
Make people listed in wallets url-linkable
Diffstat (limited to 'core/models/caves.py')
-rw-r--r--core/models/caves.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/core/models/caves.py b/core/models/caves.py
index 2769cdb..3e2511b 100644
--- a/core/models/caves.py
+++ b/core/models/caves.py
@@ -598,9 +598,13 @@ def GetCaveLookup():
("2007-71", "1623-271"),
("2010-01", "1623-263"),
("2010-03", "1623-293"),
+ ("2012-70", "1623-296"),
+ ("1623-2012-70", "1623-296"),
+ ("2012-dd-05", "1623-286"),
+ ("2012-dd-08", "1623-297"),
# ("2011-01", "1623-292"), seems to be a mistake
("2012-dd-05", "1623-286"),
- ("2012-0w-01", "2012-ow-01"),
+ ("2012-0w-01", "2012-ow-01"), # typo zero for 'O'
("2012-ns-13", "1623-292"),
("2014-neo-01", "1623-273"),
("2014-sd-01", "1623-274"),
@@ -624,8 +628,8 @@ def GetCaveLookup():
("2011-01-bs30", "1623-190"),
("bs30", "1623-190"),
("2011-01", "1623-190"),
- ("2002-x11", "2005-08"),
- ("2002-x12", "2005-07"),
+ ("2002-x11", "1623-2005-08"),
+ ("2002-x12", "1623-2005-07"),
("2002-x13", "1623-2005-06"),
("2002-x14", "2005-05"),
("kh", "1623-161"),
@@ -676,7 +680,7 @@ def GetCaveLookup():
else:
message = f" * Coding or cave existence mistake, cave for id '{alias}' does not exist. Expecting to set alias '{key}' to it"
print(message)
- DataIssue.objects.create(parser="aliases", message=message)
+ DataIssue.objects.update_or_create(parser="aliases", message=message)
addmore = {}
for id in Gcavelookup: