mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-16 05:27:10 +00:00
debugging ticklist
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user