mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-16 10:07:25 +00:00
fix no people on wallet bug
This commit is contained in:
@@ -215,13 +215,11 @@ def walletslistperson(request, slug):
|
|||||||
if w in manywallets:
|
if w in manywallets:
|
||||||
# we already know this is a wallet we need to report on
|
# we already know this is a wallet we need to report on
|
||||||
continue
|
continue
|
||||||
|
if not w.people(): # bug? skip
|
||||||
|
# msg = f"{w} no w.people() found "
|
||||||
|
# print(msg)
|
||||||
|
continue
|
||||||
for n in w.people():
|
for n in w.people():
|
||||||
# if n.lower().startswith("lydia"):
|
|
||||||
# print(f"{w} {n=} ")
|
|
||||||
# for x in crew:
|
|
||||||
# if x.lower()==n.lower():
|
|
||||||
# print(f"{w} {n=} {x=}")
|
|
||||||
|
|
||||||
if n.lower() in crew:
|
if n.lower() in crew:
|
||||||
if crew[n.lower()] == person_expo:
|
if crew[n.lower()] == person_expo:
|
||||||
manywallets.add(w)
|
manywallets.add(w)
|
||||||
@@ -248,7 +246,7 @@ def walletslistperson(request, slug):
|
|||||||
expeditions = Expedition.objects.all()
|
expeditions = Expedition.objects.all()
|
||||||
length_ug = 0.0
|
length_ug = 0.0
|
||||||
for w in manywallets:
|
for w in manywallets:
|
||||||
print(w.persons)
|
print(f"{w}: no .persons in this wallet but people() is {w.people()}")
|
||||||
for sb in w.survexblock_set.all():
|
for sb in w.survexblock_set.all():
|
||||||
length_ug += sb.legslength
|
length_ug += sb.legslength
|
||||||
return render(
|
return render(
|
||||||
|
|||||||
Reference in New Issue
Block a user