diff options
author | Philip Sargent <philip.sargent@klebos.com> | 2022-08-31 12:09:07 +0300 |
---|---|---|
committer | Philip Sargent <philip.sargent@klebos.com> | 2022-08-31 12:09:07 +0300 |
commit | 6452a7beed18072719b27239b95cb7d081d81dc3 (patch) | |
tree | dfe6c74d6106b4ecfc331fecc566376fcea4d3d9 /core/views/scans.py | |
parent | 5c667c182600ef58554be6bbeb54b8c0561cbcd4 (diff) | |
download | troggle-6452a7beed18072719b27239b95cb7d081d81dc3.tar.gz troggle-6452a7beed18072719b27239b95cb7d081d81dc3.tar.bz2 troggle-6452a7beed18072719b27239b95cb7d081d81dc3.zip |
fix green block for survex files on table
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}) |