QMs grayed out for survex files 2014 and earlier

This commit is contained in:
Philip Sargent 2022-08-07 23:41:45 +03:00
parent 7f335e082c
commit 25c425cff8
2 changed files with 9 additions and 4 deletions

View File

@ -297,6 +297,9 @@ class Wallet(models.Model):
ticks["Q"] = "green"
else:
ticks["Q"] = survexok
if int(self.year()) < 2015:
ticks["Q"] = "lightgrey"
# Notes, Plan, Elevation; Tunnel
if waldata["electronic survey"]:

View File

@ -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()