2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-24 00:01:54 +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: except:
message = f"! {str(self.walletname)} Failed to load {jsonfile} JSON file" message = f"! {str(self.walletname)} Failed to load {jsonfile} JSON file"
print(message) print(message)
from troggle.core.models.troggle import DataIssue
DataIssue.objects.update_or_create(parser="wallets", message=message, url=wurl) DataIssue.objects.update_or_create(parser="wallets", message=message, url=wurl)
return None return None
@ -233,6 +234,7 @@ class Wallet(models.Model):
sx = sx + ".svx" sx = sx + ".svx"
if not (Path(settings.SURVEX_DATA) / sx).is_file(): if not (Path(settings.SURVEX_DATA) / sx).is_file():
message=f"{self} Survex file {sx} was not found in LOSER repo" 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) DataIssue.objects.update_or_create(parser="wallets", message=message, url=wurl)
# check using <kataster> field on the cave whether it has been renamed... # check using <kataster> field on the cave whether it has been renamed...