diff options
author | Philip Sargent <philip.sargent@gmail.com> | 2023-10-05 14:11:05 +0300 |
---|---|---|
committer | Philip Sargent <philip.sargent@gmail.com> | 2023-10-05 14:11:05 +0300 |
commit | fcfa59cdf7273c97c022fb1ba2b249f4199811ba (patch) | |
tree | bdd48f9ecbd62c8286d1b270fed4131d45e8fe98 /core/models | |
parent | eae919e5b213d03d29b9103b8db2534e506e81d1 (diff) | |
download | troggle-fcfa59cdf7273c97c022fb1ba2b249f4199811ba.tar.gz troggle-fcfa59cdf7273c97c022fb1ba2b249f4199811ba.tar.bz2 troggle-fcfa59cdf7273c97c022fb1ba2b249f4199811ba.zip |
Make people listed in wallets url-linkable
Diffstat (limited to 'core/models')
-rw-r--r-- | core/models/caves.py | 12 | ||||
-rw-r--r-- | core/models/wallets.py | 3 |
2 files changed, 10 insertions, 5 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: diff --git a/core/models/wallets.py b/core/models/wallets.py index 9725a88..dd8567d 100644 --- a/core/models/wallets.py +++ b/core/models/wallets.py @@ -53,7 +53,8 @@ def make_valid_date(date): return None if datestr: # might have been None - print(f"! - Failed to understand date, none of our tricks worked {datestr=} ") + if datestr != "None": + print(f"! - Failed to understand date, none of our tricks worked {datestr=} ") return None archaic_wallets = [ |