summaryrefslogtreecommitdiffstats
path: root/core/views/statistics.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2023-08-05 12:57:38 +0300
committerPhilip Sargent <philip.sargent@gmail.com>2023-08-05 12:57:38 +0300
commit33026ca9eacd1038b92c1a5c02e9d80ae5de06ab (patch)
treea53227feff950f220a765cabeaedc957a970fedf /core/views/statistics.py
parent7df2d4474863ea98210d8675d0640c9eca400e85 (diff)
downloadtroggle-33026ca9eacd1038b92c1a5c02e9d80ae5de06ab.tar.gz
troggle-33026ca9eacd1038b92c1a5c02e9d80ae5de06ab.tar.bz2
troggle-33026ca9eacd1038b92c1a5c02e9d80ae5de06ab.zip
who to blame
Diffstat (limited to 'core/views/statistics.py')
-rw-r--r--core/views/statistics.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/core/views/statistics.py b/core/views/statistics.py
index f56b821..a796d04 100644
--- a/core/views/statistics.py
+++ b/core/views/statistics.py
@@ -6,7 +6,7 @@ from django.shortcuts import render
import troggle.settings as settings
from troggle.core.models.caves import Cave, Entrance
from troggle.core.models.logbooks import LogbookEntry
-from troggle.core.models.survex import SurvexStation
+from troggle.core.models.survex import SurvexStation, SurvexPersonRole
from troggle.core.models.troggle import DataIssue, Expedition, Person, PersonExpedition
from troggle.parsers.people import GetPersonExpeditionNameLookup, foreign_friends
@@ -49,6 +49,11 @@ def svxfilewild(request, year=None):
if sb.name != "rootblock":
svxwild.append(sb)
print(f" WILD {sb.survexfile} {sb.date}")
+ people = SurvexPersonRole.objects.filter(survexblock=sb)
+ team = []
+ for p in people:
+ team.append(p.personname)
+ sb.team = team
# else:
# print(f" TAME {sb.survexfile}")