diff options
-rw-r--r-- | core/views/statistics.py | 5 | ||||
-rw-r--r-- | templates/controlPanel.html | 3 | ||||
-rw-r--r-- | templates/therionreport.html | 18 | ||||
-rw-r--r-- | urls.py | 1 |
4 files changed, 25 insertions, 2 deletions
diff --git a/core/views/statistics.py b/core/views/statistics.py index d804bb5..726aebb 100644 --- a/core/views/statistics.py +++ b/core/views/statistics.py @@ -21,7 +21,10 @@ from troggle.parsers.people import (GetPersonExpeditionNameLookup, #from django.views.generic.list import ListView - +def therionissues(request): + theriondict = {} + + return render(request, 'therionreport.html', {"theriondict":theriondict}) '''Very simple report pages summarizing data about the whole set of expeditions and of the status of data inconsistencies diff --git a/templates/controlPanel.html b/templates/controlPanel.html index 6c97f9c..a1a4510 100644 --- a/templates/controlPanel.html +++ b/templates/controlPanel.html @@ -23,7 +23,8 @@ <ul> <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="/dataissues">Data Issues on Imports</a> - warnings and errors from recent data import +<li><a href="/dataissues">Data Issues on Imports</a> - warnings and errors from the recent data import +<li><a href="/therionissues">Therion Import issues</a> - warnings from the recent data import <li><a href="/admin/">Django admin</a> - Deep magic access to all models and data </ul> <h3>This control panel is being redeveloped</h3> diff --git a/templates/therionreport.html b/templates/therionreport.html new file mode 100644 index 0000000..42a4786 --- /dev/null +++ b/templates/therionreport.html @@ -0,0 +1,18 @@ +{% extends "base.html" %} +{% block title %}Troggle paths report{% endblock %} + +{% block content %} +<h1>Expo Therion import issues report</h1> + +<p style="font-family: Consolas, Lucida Console, monospace;"> +{% for line in theriondict %} +{% empty %} +<b>No Therion parsing output found. Re-import all drawings using databaseReset.py</b> +{% endfor %} + +<p>This report is generated from <code>templates/therionreport.html</code> and +by <code>therionreport(request)</code> in <code>core/views/statistics.py </code> +<hr> +<p>Go to <a href="/handbook/troggle/trogmanual.html">Troggle maintenance manuals</a> +{% endblock %} + @@ -147,6 +147,7 @@ trogglepatterns = [ path('stats', statistics.stats, name="stats"), path('pathsreport', statistics.pathsreport, name="pathsreport"), path('dataissues', statistics.dataissues, name="dataissues"), + path('therionissues', statistics.therionissues, name="therionissues"), path('eastings', statistics.eastings, name="eastings"), path('aliases/<int:year>',statistics.aliases, name="aliases"), |