2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-27 17:51:53 +00:00

local import of DataIssue

This commit is contained in:
Philip Sargent 2024-08-11 19:45:51 +03:00
parent 3e198fc410
commit 9063e54e6c

View File

@ -202,6 +202,7 @@ class Wallet(models.Model):
except:
message = f"! {str(self.walletname)} Failed to load {jsonfile} JSON file"
print(message)
from troggle.core.models.troggle import DataIssue
DataIssue.objects.update_or_create(parser="wallets", message=message, url=wurl)
return None
@ -233,6 +234,7 @@ class Wallet(models.Model):
sx = sx + ".svx"
if not (Path(settings.SURVEX_DATA) / sx).is_file():
message=f"{self} Survex file {sx} was not found in LOSER repo"
from troggle.core.models.troggle import DataIssue
DataIssue.objects.update_or_create(parser="wallets", message=message, url=wurl)
# check using <kataster> field on the cave whether it has been renamed...