From 6452a7beed18072719b27239b95cb7d081d81dc3 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Wed, 31 Aug 2022 12:09:07 +0300 Subject: fix green block for survex files on table --- core/views/scans.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'core/views/scans.py') diff --git a/core/views/scans.py b/core/views/scans.py index ddaf9ae..78f436f 100644 --- a/core/views/scans.py +++ b/core/views/scans.py @@ -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}) -- cgit v1.2.3