From f3ecdd6d879a85b966d2e308e7207e89d9f459ce Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Sat, 24 Sep 2022 00:17:51 +0300 Subject: Cleaner monitoring output when importing wallets and scans --- core/views/scans.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/views/scans.py') diff --git a/core/views/scans.py b/core/views/scans.py index 50e7209..5269d0b 100644 --- a/core/views/scans.py +++ b/core/views/scans.py @@ -64,7 +64,7 @@ def caveifywallet(w): '''Gets the cave from the list of survex files, only selects one of them though. Only used for display. ''' - print(f' - Caveify {w=}') + #print(f' - Caveify {w=}') blocknames = [] blocks = SurvexBlock.objects.filter(scanswallet = w) for b in blocks: @@ -208,7 +208,7 @@ def cavewallets(request, caveid): wallets.add(z) else: wurl = f"/scanupload/{z.walletname.replace('#',':')}" - print(f' - Unrecognised cave name \'{zcaveid}\' in {z.walletname} (out of {len(Gcavelookup):,} cave names') + print(f' - Unrecognised cave name \'{zcaveid}\' in {z.walletname} (out of {len(Gcavelookup):,} cave names and aliases)') message = f" ! In {z.walletname} there is an unrecognised cave name '{zcaveid}' (out of {len(Gcavelookup):,} cave names" DataIssue.objects.update_or_create(parser='scans', message=message, url=wurl) -- cgit v1.2.3