forked from expo/troggle
Public Import Errors webpage
This commit is contained in:
parent
7f5ac93cc6
commit
bc9b4f508b
@ -11,7 +11,7 @@ from django.template.defaultfilters import slugify
|
|||||||
from django.utils import timezone
|
from django.utils import timezone
|
||||||
#from django.views.generic.list import ListView
|
#from django.views.generic.list import ListView
|
||||||
|
|
||||||
from troggle.core.models import Expedition, Person, PersonExpedition
|
from troggle.core.models import Expedition, Person, PersonExpedition, DataIssue
|
||||||
from troggle.core.models_caves import Cave, LogbookEntry
|
from troggle.core.models_caves import Cave, LogbookEntry
|
||||||
from troggle.core.models_survex import SurvexBlock
|
from troggle.core.models_survex import SurvexBlock
|
||||||
|
|
||||||
@ -143,3 +143,13 @@ def stats(request):
|
|||||||
|
|
||||||
renderDict = {**statsDict, **{ "addupsurvexlength":addupsurvexlength/1000, "legsbyexpo":legsbyexpo }} # new syntax
|
renderDict = {**statsDict, **{ "addupsurvexlength":addupsurvexlength/1000, "legsbyexpo":legsbyexpo }} # new syntax
|
||||||
return render(request,'statistics.html', renderDict)
|
return render(request,'statistics.html', renderDict)
|
||||||
|
|
||||||
|
def dataissues(request):
|
||||||
|
didict={}
|
||||||
|
for di in DataIssue.objects.all():
|
||||||
|
didict['parser'] = di.parser
|
||||||
|
didict['message']= di.message
|
||||||
|
didict['date']= di.date
|
||||||
|
alldi = DataIssue.objects.all
|
||||||
|
|
||||||
|
return render(request,'dataissues.html', {'didict': alldi})
|
||||||
|
@ -39,6 +39,7 @@
|
|||||||
<a href="/1623/204/204.html">204 (Steinbrucken)</a> |
|
<a href="/1623/204/204.html">204 (Steinbrucken)</a> |
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
|
<a href="{% url "dataissues" %}">Data Issues</a> |
|
||||||
<a href="/handbook/computing/onlinesystems.html">handbook</a> |
|
<a href="/handbook/computing/onlinesystems.html">handbook</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="cavesLink" href="{% url "caveindex" %}">caves</a> |
|
||||||
|
23
templates/dataissues.html
Normal file
23
templates/dataissues.html
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
{% extends "base.html" %}
|
||||||
|
{% block title %}Expo issues on data import{% endblock %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
|
||||||
|
<h1>Loading data from files: Issues arising that need attention</h1>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
This is work in progress (April 2021).
|
||||||
|
|
||||||
|
<table>
|
||||||
|
<tr><th>Parser</th><th>Issue</th><th>Import Date</th></tr>
|
||||||
|
{% for di in didict %}
|
||||||
|
<tr>
|
||||||
|
<td style="text-align:center">{{di.parser}}</td>
|
||||||
|
<td style="text-align:left">{{di.message}}</td>
|
||||||
|
<td style="text-align:center" width=25%>{{di.date}}</td>
|
||||||
|
</tr>
|
||||||
|
{% endfor %}
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
{% endblock %}
|
7
urls.py
7
urls.py
@ -10,7 +10,7 @@ from django.urls import reverse, resolve
|
|||||||
from troggle.core.views import surveys, logbooks, other, caves, statistics, survex
|
from troggle.core.views import surveys, logbooks, other, caves, statistics, survex
|
||||||
from troggle.core.views.other import troggle404, frontpage
|
from troggle.core.views.other import troggle404, frontpage
|
||||||
from troggle.core.views.caves import ent, prospecting_image, cavepage
|
from troggle.core.views.caves import ent, prospecting_image, cavepage
|
||||||
from troggle.core.views.statistics import pathsreport, stats
|
from troggle.core.views.statistics import pathsreport, stats, dataissues
|
||||||
from troggle.core.views.expo import expofiles_redirect, expofilessingle, expopage, editexpopage, mediapage
|
from troggle.core.views.expo import expofiles_redirect, expofilessingle, expopage, editexpopage, mediapage
|
||||||
from troggle.core.views.survex import survexcaveslist, survexcavesingle, svx
|
from troggle.core.views.survex import survexcaveslist, survexcavesingle, svx
|
||||||
from troggle.core.views.auth import expologin, expologout
|
from troggle.core.views.auth import expologin, expologout
|
||||||
@ -118,8 +118,9 @@ trogglepatterns = [
|
|||||||
|
|
||||||
|
|
||||||
url(r'^statistics/?$', statistics.stats, name="stats"),
|
url(r'^statistics/?$', statistics.stats, name="stats"),
|
||||||
url(r'^stats/?$', statistics.stats, name="stats"),
|
url(r'^stats/?$', statistics.stats, name="stats"),
|
||||||
url(r'^pathsreport.*$', statistics.pathsreport, name="pathsreport"),
|
url(r'^pathsreport.*$', statistics.pathsreport, name="pathsreport"),
|
||||||
|
url(r'^dataissues/?$', statistics.dataissues, name="dataissues"),
|
||||||
|
|
||||||
url(r'^controlpanel/?$', other.controlPanel, name="controlpanel"),
|
url(r'^controlpanel/?$', other.controlPanel, name="controlpanel"),
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user