2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-18 18:57:10 +00:00

length of unreference cave survey added

This commit is contained in:
2023-08-05 14:15:35 +03:00
parent ee5a2c9ef8
commit 12aa6ced86
4 changed files with 27 additions and 14 deletions

View File

@@ -8,6 +8,7 @@ from troggle.core.models.caves import Cave, Entrance
from troggle.core.models.logbooks import LogbookEntry from troggle.core.models.logbooks import LogbookEntry
from troggle.core.models.survex import SurvexStation, SurvexPersonRole from troggle.core.models.survex import SurvexStation, SurvexPersonRole
from troggle.core.models.troggle import DataIssue, Expedition, Person, PersonExpedition from troggle.core.models.troggle import DataIssue, Expedition, Person, PersonExpedition
from troggle.core.models.wallets import Wallet
from troggle.parsers.people import GetPersonExpeditionNameLookup, foreign_friends from troggle.parsers.people import GetPersonExpeditionNameLookup, foreign_friends
# from django.views.generic.list import ListView # from django.views.generic.list import ListView
@@ -41,6 +42,7 @@ def svxfilewild(request, year=None):
legsbyexpo.reverse() legsbyexpo.reverse()
svxwild = [] svxwild = []
wildlength = 0.0
for expedition in expos: for expedition in expos:
survexblocks = expedition.survexblock_set.all() survexblocks = expedition.survexblock_set.all()
for sb in survexblocks: for sb in survexblocks:
@@ -49,19 +51,26 @@ def svxfilewild(request, year=None):
if sb.name != "rootblock": if sb.name != "rootblock":
svxwild.append(sb) svxwild.append(sb)
print(f" WILD {sb.survexfile} {sb.date}") print(f" WILD {sb.survexfile} {sb.date}")
wildlength += sb.legslength
sb.year = f"{expedition}" sb.year = f"{expedition}"
people = SurvexPersonRole.objects.filter(survexblock=sb) people = SurvexPersonRole.objects.filter(survexblock=sb)
team = [] team = []
for p in people: for p in people:
team.append(p.personname) team.append(p.personname)
sb.team = team sb.team = team
# else: walletslength = 0.0
# print(f" TAME {sb.survexfile}") if year:
wallets = Wallet.objects.filter(walletyear__year=year)
for w in wallets:
for sb in w.survexblock_set.all():
walletslength += sb.legslength
return render(request, "survexfilewild.html", return render(request, "survexfilewild.html",
{"addupsurvexlength": addupsurvexlength / 1000, {"addupsurvexlength": addupsurvexlength / 1000,
"legsbyexpo": legsbyexpo, "legsbyexpo": legsbyexpo,
"nsurvexlegs": addupsurvexlegs, "nsurvexlegs": addupsurvexlegs,
"walletslength": walletslength,
"wildlength": wildlength,
"svxwild": svxwild} "svxwild": svxwild}
) )

View File

@@ -31,9 +31,10 @@
{% else %} {% else %}
<div class="toolbarlinks"> <div class="toolbarlinks">
{% endif %} {% endif %}
<a href="/survexfile/caves-1623/264/264.svx">264</a> | <a href="/1623/290/290">290 (FGH)</a> |
<a href="/survexfile/caves-1623/290/290.svx">290</a> | <a href="/1626/359/359.html">359 (HC)</a> |
<a href="/survexfile/caves-1626/359/359.svx">359</a> | <a id="cavesLink" href="{% url "caveindex" %}">caves</a> |
<a id="qmsLink" href="{% url "caveQMs" "1623-290" %}">QMs</a> |
<a href="/survexfile/">Survex</a> | <a href="/survexfile/">Survex</a> |
<a href="{% url "survexcaveslist" %}">All Survex</a> | <a href="{% url "survexcaveslist" %}">All Survex</a> |
<a href="{% url "allscans" %}">Scans</a> | <a href="{% url "allscans" %}">Scans</a> |
@@ -41,18 +42,16 @@
<a href="{% url "dwgallfiles" %}">Drawings</a> | <a href="{% url "dwgallfiles" %}">Drawings</a> |
<a href="{% url "dwgupload" %}">Upload Drawings</a> | <a href="{% url "dwgupload" %}">Upload Drawings</a> |
<a href="{% url "photoupload" %}">Upload Photos</a> | <a href="{% url "photoupload" %}">Upload Photos</a> |
<a href="/1623/290/290">290 (FGH)</a> |
<a href="/1623/264/264.html">264 (Balkonh&ouml;hle)</a> |
<br> <br>
<a href="{% url "dataissues" %}">Data Issues</a> | <a href="{% url "dataissues" %}">Data Issues</a> |
<a href="/handbook/computing/todo-data.html">tasks to do </a> | <a href="/handbook/computing/todo-data.html">tasks to do </a> |
<a id="cavesLink" href="{% url "caveindex" %}">caves</a> |
<a id="qmsLink" href="{% url "caveQMs" "1623-290" %}">QMs</a> |
<a id="entsLink" href="{% url "eastings" %}">ents</a> | <a id="entsLink" href="{% url "eastings" %}">ents</a> |
<a id="folklink" href="/folk">expoers</a> | <a id="folklink" href="/folk">expoers</a> |
<a id="caversLink" href="{% url "notablepersons" %}">survey lengths</a> | <a id="caversLink" href="{% url "notablepersons" %}">survey lengths</a> |
<a href="{% url "stats" %}">statistics</a> | <a href="{% url "stats" %}">statistics</a> |
<a href="/survexfilewild/2023">Wild Survex(2023)</a> |
<a href="/wallets/year/2023">Wallets(2023)</a> | <a href="/wallets/year/2023">Wallets(2023)</a> |
<a href="{% url "expedition" 2023 %}">Expo(2023)</a> | <a href="{% url "expedition" 2023 %}">Expo(2023)</a> |
<a href="{% url "controlpanel" %}">Control panel</a> | <a href="{% url "controlpanel" %}">Control panel</a> |

View File

@@ -22,13 +22,14 @@
<h3>Administration Utilities</h3> <h3>Administration Utilities</h3>
<ul> <ul>
<li><a href="/pathsreport">Folder paths used</a> -folders settings used by this troggle installation <li><a href="/pathsreport">Folder paths used</a> -folders settings used by this troggle installation
<li><a href="/aliases/2022">Expoer name aliases</a> -short names recognised by troggle <li><a href="/aliases/2023">Expoer name aliases</a> -short names recognised by troggle
<li><a href="/dataissues">Data Issues on Imports</a> - warnings and errors from the recent data import <li><a href="/dataissues">Data Issues on Imports</a> - warnings and errors from the recent data import
<li><a href="/survexfilewild/2023">Wild survex files</a> - survex files contianing blocks with no related wallet
<li><a href="/surveximport">Survex import record</a> - indented *include and begin/end tree<br /><li><a href="/survexdebug">Survex debug report</a> - warnings and details<br /> <li><a href="/surveximport">Survex import record</a> - indented *include and begin/end tree<br /><li><a href="/survexdebug">Survex debug report</a> - warnings and details<br />
<li><a href="/therionissues">Therion Import issues</a> - warnings from the recent data import<br /><br /> <li><a href="/therionissues">Therion Import issues</a> - warnings from the recent data import<br /><br />
<li><a href="/admin/">Django admin</a> - Deep magic access to all models and data <li><a href="/admin/">Django admin</a> - Deep magic access to all models and data
</ul> </ul>
<h3>This control panel is being redeveloped</h3> <h3>This control panel is/will/mabe being redeveloped</h3>
<p>Do not attempt to use any of these import functions as they are in active development. <p>Do not attempt to use any of these import functions as they are in active development.
<ol> <ol>

View File

@@ -22,12 +22,16 @@ 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.
<br /><br />
If the "team" field is empty, it probably means that the survex file has been created since the last database reset. If the "team" field is empty, it probably means that the survex file has been created since the last database reset.
<br /> <br />
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 the parent block says "troggle _unseens" or "None" then the survex file has not been plumbed in to the expo survex network yet.
<br /> <br />
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. 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.
<br /><br /> <br /><br />
Length of survex data referenced by wallets in this year {{walletslength|floatformat:"0g"}}m.
<br /><br />
<table> <table>
<tr><th>Year</th><th>Survex<br>Survey<br>Blocks</th><th>Survex<br>Survey Legs</th><th>Survex <br>length(m)</th></tr> <tr><th>Year</th><th>Survex<br>Survey<br>Blocks</th><th>Survex<br>Survey Legs</th><th>Survex <br>length(m)</th></tr>
{% for legs in legsbyexpo %} {% for legs in legsbyexpo %}