mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2026-02-08 11:28:23 +00:00
Revised (faster, less brain damaged) wallet pages
This commit is contained in:
@@ -7,6 +7,9 @@ from troggle.core.models.troggle import DataIssue
|
||||
from troggle.core.models.wallets import Wallet
|
||||
|
||||
"""Searches through all the survey scans directories (wallets) in expofiles, looking for images to be referenced. Loads all the wallets .
|
||||
|
||||
todo - update the survexblock scanswallet field to refer to the wallet, if it isn't already.
|
||||
But we can't do that, we only have the survexfile, not the blcok. But we could set it for ALL the blocks? Hmm.
|
||||
"""
|
||||
|
||||
contentsjson = "contents.json"
|
||||
@@ -25,7 +28,7 @@ def set_JSONwalletdate(wallet):
|
||||
|
||||
def set_caves(wallet):
|
||||
_ = wallet.allcaves() # don't need return value. Just calling this saves it as w.caves This ONLY gets the list on the wallet JSON
|
||||
|
||||
|
||||
def load_all_scans():
|
||||
"""This iterates through the scans directories (either here or on the remote server)
|
||||
and builds up the models we can access later.
|
||||
@@ -173,6 +176,7 @@ def load_all_scans():
|
||||
for wallet in Wallet.objects.all():
|
||||
# this reads JSON
|
||||
wallet.check_survexlist()
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user