mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-15 02:57:17 +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:
|
||||
# we already know this is a wallet we need to report on
|
||||
continue
|
||||
if not w.people(): # bug? skip
|
||||
# msg = f"{w} no w.people() found "
|
||||
# print(msg)
|
||||
continue
|
||||
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 crew[n.lower()] == person_expo:
|
||||
manywallets.add(w)
|
||||
@@ -248,7 +246,7 @@ def walletslistperson(request, slug):
|
||||
expeditions = Expedition.objects.all()
|
||||
length_ug = 0.0
|
||||
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():
|
||||
length_ug += sb.legslength
|
||||
return render(
|
||||
|
||||
Reference in New Issue
Block a user