diff --git a/core/models/survex.py b/core/models/survex.py index 7e6358c..6bffb49 100644 --- a/core/models/survex.py +++ b/core/models/survex.py @@ -296,7 +296,10 @@ class Wallet(models.Model): if waldata["qms written"]: ticks["Q"] = "green" else: - ticks["Q"] = survexok + ticks["Q"] = survexok + if int(self.year()) < 2015: + ticks["Q"] = "lightgrey" + # Notes, Plan, Elevation; Tunnel if waldata["electronic survey"]: diff --git a/parsers/scans.py b/parsers/scans.py index 4e6d495..cf4a100 100644 --- a/parsers/scans.py +++ b/parsers/scans.py @@ -143,10 +143,12 @@ def CopyWalletData(wallet): -# this iterates through the scans directories (either here or on the remote server) -# and builds up the models we can access later 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. + It does NOT read or validate anything in the JSON data attached to each wallet. Those checks + are done at runtime, when a wallet is accessed, not at import time. + ''' print(' - Loading Survey Scans') SingleScan.objects.all().delete()