fix green block for survex files on table

This commit is contained in:
Philip Sargent
2022-08-31 12:09:07 +03:00
parent 5c667c1826
commit 6452a7beed
5 changed files with 36 additions and 13 deletions

View File

@@ -95,8 +95,11 @@ def fillblankothers(w):
c = w.cave()
if not c:
caveifywallet(w)
def fixsurvextick(w, ticks):
ticks["S"] = w.fixsurvextick(ticks["S"])
def walletslistperson(request, first_name, last_name):
'''Page which displays a list of all the wallets for a specific person
HORRIBLE linear search through everything. Index and do SQL query properly
@@ -114,6 +117,7 @@ def walletslistperson(request, first_name, last_name):
manywallets.append(w)
fillblankothers(w)
w.ticks = w.get_ticks() # the complaints in colour form
fixsurvextick(w, w.ticks)
return manywallets
try:
@@ -143,7 +147,8 @@ def walletslistyear(request, year):
manywallets.append(w)
fillblankpeople(w)
fillblankothers(w)
w.ticks = w.get_ticks() # the complaints in colour form
w.ticks = w.get_ticks() # the complaints in colour form, from the json file on disc
fixsurvextick(w, w.ticks)
else:
continue
@@ -177,7 +182,8 @@ def cavewallets(request, caveid):
for w in manywallets:
fillblankpeople(w)
fillblankothers(w)
w.ticks = w.get_ticks() # the complaints in colour form
w.ticks = w.get_ticks() # the complaints in colour form, from the json file on disc
fixsurvextick(w, w.ticks)
return render(request, 'cavewallets.html', { 'manywallets':manywallets, 'settings': settings, 'cave': cave})