summaryrefslogtreecommitdiffstats
path: root/core/views/scans.py
diff options
context:
space:
mode:
Diffstat (limited to 'core/views/scans.py')
-rw-r--r--core/views/scans.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/views/scans.py b/core/views/scans.py
index 0e49a8c..7f9d8c7 100644
--- a/core/views/scans.py
+++ b/core/views/scans.py
@@ -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,
},
)