From 126aaa0633a21c614120d492de4b3d6566de82a9 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Sat, 5 Aug 2023 13:14:45 +0300 Subject: [PATCH] add url to wallets --- core/views/statistics.py | 1 + templates/survexfilewild.html | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/core/views/statistics.py b/core/views/statistics.py index a796d04..a820c00 100644 --- a/core/views/statistics.py +++ b/core/views/statistics.py @@ -49,6 +49,7 @@ def svxfilewild(request, year=None): if sb.name != "rootblock": svxwild.append(sb) print(f" WILD {sb.survexfile} {sb.date}") + sb.year = f"{expedition}" people = SurvexPersonRole.objects.filter(survexblock=sb) team = [] for p in people: diff --git a/templates/survexfilewild.html b/templates/survexfilewild.html index ef25b11..20f5e2e 100644 --- a/templates/survexfilewild.html +++ b/templates/survexfilewild.html @@ -14,7 +14,7 @@ i.e. they have a survex block (begin..end) with no *REF line which refers to the {% for sb in svxwild %} {{ sb }} - {{sb.date }} + {{sb.date }} {{sb.parent }} {{sb.survexfile.path}} {{sb.legslength|floatformat:"1g" }}m @@ -24,7 +24,9 @@ i.e. they have a survex block (begin..end) with no *REF line which refers to the
If the "team" field is empty, it probably means that the survex file has been created since the last database reset.
-If the parent block says "troggle _unseens" then the survex file has not been plumbed in to the expo survex network yet. +If the parent block says "troggle _unseens" or "None" then the survex file has not been plumbed in to the expo survex network yet. +
+If there is a *ref line of the correct format, then maybe that wallet has not been created yet. Create it, and fill in the data.

YearSurvex
Survey
Blocks
Survex
Survey Legs
Survex
length(m)