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:
parent
3e198fc410
commit
9063e54e6c
@ -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...
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user