diff options
Diffstat (limited to 'core/views/statistics.py')
-rw-r--r-- | core/views/statistics.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/core/views/statistics.py b/core/views/statistics.py index 774336e..f1b73cc 100644 --- a/core/views/statistics.py +++ b/core/views/statistics.py @@ -44,13 +44,19 @@ def svxfilewild(request, year=None): legsbyexpo.reverse() svxwild = [] + svxforeign = [] wildlength = 0.0 + foreignlength = 0.0 for expedition in expos: survexblocks = expedition.survexblock_set.all() for sb in survexblocks: # print(f"{sb=}") if sb.scanswallet == None: - if sb.name != "rootblock": + if sb.foreigners: + svxforeign.append(sb) + print(f" FOREIGN {sb.survexfile} {sb.date}") + foreignlength += sb.legslength + elif sb.name != "rootblock": svxwild.append(sb) print(f" WILD {sb.survexfile} {sb.date}") wildlength += sb.legslength @@ -74,8 +80,10 @@ def svxfilewild(request, year=None): "nsurvexlegs": addupsurvexlegs, "walletslength": walletslength, "wildlength": wildlength, + "foreignlength": foreignlength, "year":year, - "svxwild": svxwild} + "svxwild": svxwild, + "svxforeign": svxforeign} ) def therionissues(request): |