mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2026-04-07 05:15:41 +01:00
clean up small errors and debugging
This commit is contained in:
@@ -629,7 +629,7 @@ def GetCaveLookup():
|
||||
("bs30", "1623-190"),
|
||||
("2011-01", "1623-190"),
|
||||
("2002-x11", "1623-2005-08"),
|
||||
("2002-x12", "1623-2005-07"),
|
||||
("2002-x12", "2005-07"),
|
||||
("2002-x13", "1623-2005-06"),
|
||||
("2002-x14", "2005-05"),
|
||||
("kh", "1623-161"),
|
||||
|
||||
@@ -134,9 +134,10 @@ class Wallet(models.Model):
|
||||
self.save()
|
||||
waldata["date"] = thisdate.isoformat()
|
||||
else:
|
||||
message = f"! {str(self.walletname)} Date format not ISO {waldata['date']}. Failed to load from {jsonfile} JSON file"
|
||||
from troggle.core.models.troggle import DataIssue
|
||||
DataIssue.objects.update_or_create(parser="wallets", message=message, url=wurl)
|
||||
if waldata["date"] != "" or waldata["date"] != "None":
|
||||
message = f"! {str(self.walletname)} Date format not ISO {waldata['date']}. Failed to load from {jsonfile} JSON file"
|
||||
from troggle.core.models.troggle import DataIssue
|
||||
DataIssue.objects.update_or_create(parser="wallets", message=message, url=wurl)
|
||||
return waldata
|
||||
|
||||
def year(self):
|
||||
|
||||
Reference in New Issue
Block a user