From 719e0fe91869989f91fb4d9ef179278dbe60e049 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Thu, 26 Jan 2023 22:36:49 +0000 Subject: [PATCH] therion issues report --- core/views/statistics.py | 5 ++++- templates/controlPanel.html | 3 ++- templates/therionreport.html | 18 ++++++++++++++++++ urls.py | 1 + 4 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 templates/therionreport.html diff --git a/core/views/statistics.py b/core/views/statistics.py index d804bb50..726aebb8 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 6c97f9c0..a1a4510c 100644 --- a/templates/controlPanel.html +++ b/templates/controlPanel.html @@ -23,7 +23,8 @@

This control panel is being redeveloped

diff --git a/templates/therionreport.html b/templates/therionreport.html new file mode 100644 index 00000000..42a4786f --- /dev/null +++ b/templates/therionreport.html @@ -0,0 +1,18 @@ +{% extends "base.html" %} +{% block title %}Troggle paths report{% endblock %} + +{% block content %} +

Expo Therion import issues report

+ +

+{% for line in theriondict %} +{% empty %} +No Therion parsing output found. Re-import all drawings using databaseReset.py +{% endfor %} + +

This report is generated from templates/therionreport.html and +by therionreport(request) in core/views/statistics.py +


+

Go to Troggle maintenance manuals +{% endblock %} + diff --git a/urls.py b/urls.py index 0156422f..dcbf5738 100644 --- a/urls.py +++ b/urls.py @@ -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/',statistics.aliases, name="aliases"),