mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2026-02-08 07:06:18 +00:00
tidied print
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user