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:
@@ -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,
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user