forked from expo/troggle
QMs grayed out for survex files 2014 and earlier
This commit is contained in:
parent
7f335e082c
commit
25c425cff8
@ -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"]:
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user