From d19c38ef462a12e580e99357c42e7ba9348bb5be Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Wed, 28 Jan 2026 15:44:08 +0000 Subject: [PATCH] tidied print --- parsers/survex.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/parsers/survex.py b/parsers/survex.py index 4f97ff5..4ea7b5d 100644 --- a/parsers/survex.py +++ b/parsers/survex.py @@ -2988,8 +2988,8 @@ def survexifywallets(): w = wallets[wid] w.caves.add(*caves) total_wallets += 1 - if total_wallets % 100 == 0: - print(f" - Batched {total_wallets} wallets for caves", file=sys.stderr) + # if total_wallets % 100 == 0: + # print(f" - Batched {total_wallets} wallets for caves", file=sys.stderr) duration = time.time() - start print(f" - {duration:7.2f} s to batch add caves to wallets (total {total_wallets})", file=sys.stderr) start = time.time() @@ -3002,8 +3002,8 @@ def survexifywallets(): for spr in sprs: cuccblocks.add(spr.survexblock) cuccblocks_count += 1 - if cuccblocks_count % 1000 == 0: - print(f" - Processed {cuccblocks_count} SurvexPersonRole for cuccblocks in {time.time() - start:.2f}s", file=sys.stderr) + # if cuccblocks_count % 1000 == 0: + # print(f" - Processed {cuccblocks_count} SurvexPersonRole for cuccblocks in {time.time() - start:.2f}s", file=sys.stderr) # Because we have just run set_survexblocks(w), this should only complain if there is no *ref and no wallet that links to its parent file sentinelbad = Wallet.objects.get(walletname="1983#00") @@ -3022,7 +3022,8 @@ def survexifywallets(): DataIssue.objects.update_or_create(parser="ref", message=message, url=url) cuccblock_count += 1 if cuccblock_count % 1000 == 0: - print(f" - Checked {cuccblock_count} cuccblocks for missing *ref in {time.time() - start:.2f}s", file=sys.stderr) + pass + # print(f" - Checked {cuccblock_count} cuccblocks for missing *ref in {time.time() - start:.2f}s", file=sys.stderr) duration = time.time() - start print(f" - {duration:7.2f} s to check missing *ref on survexblocks ", file=sys.stderr)