2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2026-02-08 16:12:36 +00:00

Make people listed in wallets url-linkable

This commit is contained in:
2023-10-05 14:11:05 +03:00
parent eae919e5b2
commit fcfa59cdf7
7 changed files with 94 additions and 33 deletions

View File

@@ -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:

View File

@@ -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 = [