summaryrefslogtreecommitdiffstats
path: root/core/views/scans.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@klebos.com>2022-08-01 02:50:19 +0300
committerPhilip Sargent <philip.sargent@klebos.com>2022-08-01 02:50:19 +0300
commit129ea3cc5bd9a77db9138277e2dc23b294c19608 (patch)
treece0ba881456d4f484e247a2991b27419bb27fa93 /core/views/scans.py
parent5da1fce41fcace616f15001b3d53834267c70081 (diff)
downloadtroggle-129ea3cc5bd9a77db9138277e2dc23b294c19608.tar.gz
troggle-129ea3cc5bd9a77db9138277e2dc23b294c19608.tar.bz2
troggle-129ea3cc5bd9a77db9138277e2dc23b294c19608.zip
debugging ticklist
Diffstat (limited to 'core/views/scans.py')
-rw-r--r--core/views/scans.py22
1 files changed, 13 insertions, 9 deletions
diff --git a/core/views/scans.py b/core/views/scans.py
index d7c48e2..94fb560 100644
--- a/core/views/scans.py
+++ b/core/views/scans.py
@@ -85,11 +85,13 @@ def walletslistperson(request, first_name, last_name):
#personyear = GetPersonExpeditionNameLookup(expedition).get(tripperson.lower())
earliest = datetime.datetime.now().date()
+
manywallets = []
- wallets = Wallet.objects.all()
+ wallets = Wallet.objects.all()
for w in wallets:
w.persons = w.people() # ephemeral attribute for web page
+ w.ticks = {} # ephemeral tick boxes display
# check if there is a json
if not w.get_json():
populatewallet(w)
@@ -102,18 +104,20 @@ def walletslistperson(request, first_name, last_name):
nobody = wp[0].lower()
if nobody == 'unknown' or nobody == 'nobody' or nobody == ' ':
populatewallet(w)
-
+ if w.persons:
if p.fullname in w.persons:
#found person
manywallets.append(w)
- if not w.date():
- datewallet(w, earliest)
-
- c = w.cave()
- if not c:
- caveifywallet(w)
-
+ if not w.date():
+ datewallet(w, earliest)
+
+ c = w.cave()
+ if not c:
+ caveifywallet(w)
+
+ w.ticks = w.get_ticks() # the complaints in colour form
+
return render(request, 'personwallets.html', { 'manywallets':manywallets, 'settings': settings, 'person': p})
def walletslistyear(request, year):