2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-22 07:11:52 +00:00

cleaner wallets import disgnostics

This commit is contained in:
Philip Sargent 2024-08-15 22:54:18 +03:00
parent c7f0061605
commit fd189c68b3
2 changed files with 6 additions and 4 deletions

View File

@ -59,7 +59,7 @@ LOGBOOK_PARSER_SETTINGS = {
LOGBOOKS_DIR = "years" # subfolder of settings.EXPOWEB
ENTRIES = {
"2024": 117,
"2024": 118,
"2023": 131,
"2022": 94,
"2019": 55,

View File

@ -4,7 +4,7 @@ from pathlib import Path
import settings
from troggle.core.models.survex import SingleScan
from troggle.core.models.troggle import DataIssue
from troggle.core.models.wallets import Wallet
from troggle.core.models.wallets import Wallet, archaic_wallets
"""Searches through all the survey scans directories (wallets) in expofiles, looking for images to be referenced. Loads all the wallets .
@ -142,10 +142,12 @@ def load_all_scans():
wjson = 0
seenlist = list(seen)
seenlist.sort()
print("\n")
print(f"\n - modern wallets with sub-folders")
for tag in seenlist:
wjson += 1
print(f" {tag} ", end="\n")
dirc, wall = tag
if wall not in archaic_wallets:
print(f" {wall} {dirc}", end="\n")
print(f"\n - found and loaded {c:,} acceptable scan files in {len(wallets):,} wallets")
# but we also need to check if JSON exists, even if there are no uploaded scan files.