diff options
author | Philip Sargent <philip.sargent@gmail.com> | 2023-03-12 01:09:17 +0000 |
---|---|---|
committer | Philip Sargent <philip.sargent@gmail.com> | 2023-03-12 01:09:17 +0000 |
commit | 35e9eb558d0ef7fb34d8ed7140a684cdce0998cf (patch) | |
tree | 022482d96019c72102f58f56d482c53b2796ee48 /core/views/scans.py | |
parent | b88b1423328d26081457e9d0bb5f55cf86232f24 (diff) | |
download | troggle-35e9eb558d0ef7fb34d8ed7140a684cdce0998cf.tar.gz troggle-35e9eb558d0ef7fb34d8ed7140a684cdce0998cf.tar.bz2 troggle-35e9eb558d0ef7fb34d8ed7140a684cdce0998cf.zip |
Identified survey length discrepencies
Diffstat (limited to 'core/views/scans.py')
-rw-r--r-- | core/views/scans.py | 5 |
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, }, ) |