diff options
Diffstat (limited to 'core/views/scans.py')
-rw-r--r-- | core/views/scans.py | 12 |
1 files changed, 9 insertions, 3 deletions
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}) |