stopped storing survex legs

This commit is contained in:
Philip Sargent
2020-06-12 00:34:53 +01:00
parent d807e3de7d
commit 092c8bb913
3 changed files with 96 additions and 6 deletions

View File

@@ -0,0 +1,28 @@
{% extends "base.html" %}
{% load wiki_markup %}
{% load link %}
{% block title %}Experimental{% endblock %}
{% block content %}
<h1>Expo Experimental</h1>
<p>Number of survey legs: {{nsurvexlegs}}<br />
Total length: {{totalsurvexlength}} m on importing survex files.<br />
Total length: {{addupsurvexlength}} m adding up all the years below.</p>
<table>
<tr><th>Year</th><th>Surveys</th><th>Survey Legs</th><th>Total length</th></tr>
{% for legs in legsbyexpo %}
<tr>
<td>{{legs.0.year}}</td>
<td>{{legs.0.survexblock_set.all|length}}</td>
<td>{{legs.1.nsurvexlegs}}</td>
<td>{{legs.1.survexleglength}}</td>
</tr>
{% endfor %}
</table>
{% endblock %}