2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-15 09:17:10 +00:00

Identified survey length discrepencies

This commit is contained in:
2023-03-12 01:09:17 +00:00
parent b88b142332
commit 35e9eb558d
6 changed files with 18 additions and 9 deletions

View File

@@ -195,6 +195,10 @@ def walletslistyear(request, year):
manywallets = ticksyearwallet(year)
expeditions = Expedition.objects.all() #bad Django style
expedition = expeditions.filter(year=year)
length_ug = 0.0
for w in manywallets:
for sb in w.survexblock_set.all():
length_ug += sb.legslength
print("--")
return render(
request,
@@ -205,6 +209,7 @@ def walletslistyear(request, year):
"year": year,
"expeditions": expeditions,
"expedition": expedition,
"length_ug": length_ug,
},
)