mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2026-02-08 09:17:46 +00:00
add multi year menu
This commit is contained in:
@@ -82,6 +82,7 @@ def svxfilewild(request, year=None):
|
|||||||
"wildlength": wildlength,
|
"wildlength": wildlength,
|
||||||
"foreignlength": foreignlength,
|
"foreignlength": foreignlength,
|
||||||
"year":year,
|
"year":year,
|
||||||
|
"expeditions": Expedition.objects.all(),
|
||||||
"svxwild": svxwild,
|
"svxwild": svxwild,
|
||||||
"svxforeign": svxforeign}
|
"svxforeign": svxforeign}
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ todo = """
|
|||||||
easier to understand and maintain
|
easier to understand and maintain
|
||||||
https://mathspp.com/blog/til/re-match-groupdict
|
https://mathspp.com/blog/til/re-match-groupdict
|
||||||
|
|
||||||
- replace hard-coded instuments list with reding an editable textfile in expoweb.
|
- replace hard-coded instuments list with reading an editable textfile in expoweb.
|
||||||
|
|
||||||
- Obscure bug in the *team inheritance and rootblock initialization needs tracking down,
|
- Obscure bug in the *team inheritance and rootblock initialization needs tracking down,
|
||||||
probably in the team cache which should NOT be global, but should be an instance variable of
|
probably in the team cache which should NOT be global, but should be an instance variable of
|
||||||
@@ -1092,6 +1092,13 @@ class LoadingSurvex:
|
|||||||
|
|
||||||
# delete the object to save memory
|
# delete the object to save memory
|
||||||
survexleg = None
|
survexleg = None
|
||||||
|
|
||||||
|
def LoadSurvexMessteam(self, survexblock, args):
|
||||||
|
"""Interpret the ; Messteam and ; Zeichner records,
|
||||||
|
Currently this just sets a flag that the survex block is not CUCC
|
||||||
|
"""
|
||||||
|
survexblock.foreigners = True
|
||||||
|
survexblock.save()
|
||||||
|
|
||||||
def LoadSurvexRef(self, survexblock, args):
|
def LoadSurvexRef(self, survexblock, args):
|
||||||
"""Interpret the *ref record, and all the many variants
|
"""Interpret the *ref record, and all the many variants
|
||||||
@@ -1640,6 +1647,7 @@ class LoadingSurvex:
|
|||||||
team = self.rx_commteam.match(comment)
|
team = self.rx_commteam.match(comment)
|
||||||
if team:
|
if team:
|
||||||
# print(f'rx_commteam -- {comment=} in {survexblock.survexfile.path} :: {survexblock}')
|
# print(f'rx_commteam -- {comment=} in {survexblock.survexfile.path} :: {survexblock}')
|
||||||
|
self.LoadSurvexMessteam(survexblock, comment)
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -3,12 +3,32 @@
|
|||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
<h1>'Wild' Survex files</h1>
|
|
||||||
|
|
||||||
<p>These are survex files which have NO ATTACHED WALLET.
|
|
||||||
|
<h1>'Wild' Survex files</h1>
|
||||||
|
<p>
|
||||||
|
{% for otherexpedition in expeditions %}
|
||||||
|
| <a <a href="/survexfilewild/{{ otherexpedition.year }}">{{otherexpedition.year}}</a>
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
|
<p>These are survex blocks within a survex file which have NO ATTACHED WALLET.
|
||||||
<br />
|
<br />
|
||||||
i.e. they have a survex block (begin..end) with no *REF line which refers to the wallet holding the raw data for that block of data.
|
i.e. they have a survex block (begin..end) with no *REF line which refers to the wallet holding the raw data for that block of data.
|
||||||
|
<p>These have "; Messteam" or "; Zeichner" in the survex block, so are non expo surveys.
|
||||||
|
<table>
|
||||||
|
<tr><th>survex block with no *ref</th><th>date</th><th>parent block</th><th>within survex file</th><th>surveyed length</th></tr>
|
||||||
|
{% for sb in svxforeign %}
|
||||||
|
<tr>
|
||||||
|
<td style="text-align:center"> {{ sb }} </td>
|
||||||
|
<td style="text-align:center"><a href="/wallets/year/{{sb.year}}">{{sb.date }}</a> </td>
|
||||||
|
<td style="text-align:center"> {{sb.parent }} </td>
|
||||||
|
<td style="text-align:left"> <a href="{% url "svx" sb.survexfile.path %}">{{sb.survexfile.path}}</a> </td>
|
||||||
|
<td style="text-align:center"> {{sb.legslength|floatformat:"1g" }}m </td>
|
||||||
|
|
||||||
|
{% endfor %}
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<p>These do not have "; Messteam" or "; Zeichner" in the survex block, so are <em>probably</em> expo surveys; definitely if they have identified team members (or have zero length).
|
||||||
<table>
|
<table>
|
||||||
<tr><th>survex block with no *ref</th><th>date</th><th>parent block</th><th>within survex file</th><th>surveyed length</th><th>team</th></tr>
|
<tr><th>survex block with no *ref</th><th>date</th><th>parent block</th><th>within survex file</th><th>surveyed length</th><th>team</th></tr>
|
||||||
{% for sb in svxwild %}
|
{% for sb in svxwild %}
|
||||||
@@ -22,7 +42,8 @@ i.e. they have a survex block (begin..end) with no *REF line which refers to the
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
</table>
|
</table>
|
||||||
<br />
|
<br />
|
||||||
So we are missing {{wildlength|floatformat:"0g"}}m of surveyed cave from our wallet records.
|
So we are missing {{wildlength|floatformat:"0g"}}m of wild surveyed cave from our wallet records.<br>
|
||||||
|
and there is {{foreignlength|floatformat:"0g"}}m of foreign (non-expo) surveyed cave from ARGE and others.
|
||||||
<br /><br />
|
<br /><br />
|
||||||
If the "team" field is empty, it probably means that it is an ARGE survey (in German) and so we do not recognise any participants as valid 'expo' members.
|
If the "team" field is empty, it probably means that it is an ARGE survey (in German) and so we do not recognise any participants as valid 'expo' members.
|
||||||
Or it may mean that we did it, but that the survex file has been created since the last database reset.
|
Or it may mean that we did it, but that the survex file has been created since the last database reset.
|
||||||
|
|||||||
Reference in New Issue
Block a user