From 9063e54e6cdc10a0d0436a28daad93952a7631d8 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Sun, 11 Aug 2024 19:45:51 +0300 Subject: [PATCH] local import of DataIssue --- core/models/wallets.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/models/wallets.py b/core/models/wallets.py index 79e022d..5c8202c 100644 --- a/core/models/wallets.py +++ b/core/models/wallets.py @@ -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 field on the cave whether it has been renamed...