diff options
author | Philip Sargent <philip.sargent@klebos.com> | 2021-04-11 20:00:09 +0100 |
---|---|---|
committer | Philip Sargent <philip.sargent@klebos.com> | 2021-04-11 20:00:09 +0100 |
commit | bc9b4f508b9b531500bac60ed7c7f8f3766b27f0 (patch) | |
tree | f8aa8e7db9493c1192b9f1b503a42a6ef6ec6044 /core/views/statistics.py | |
parent | 7f5ac93cc6b8875d809438debca14ac827a51f1a (diff) | |
download | troggle-bc9b4f508b9b531500bac60ed7c7f8f3766b27f0.tar.gz troggle-bc9b4f508b9b531500bac60ed7c7f8f3766b27f0.tar.bz2 troggle-bc9b4f508b9b531500bac60ed7c7f8f3766b27f0.zip |
Public Import Errors webpage
Diffstat (limited to 'core/views/statistics.py')
-rw-r--r-- | core/views/statistics.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/core/views/statistics.py b/core/views/statistics.py index 1f11bed..574afa8 100644 --- a/core/views/statistics.py +++ b/core/views/statistics.py @@ -11,7 +11,7 @@ from django.template.defaultfilters import slugify from django.utils import timezone #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_survex import SurvexBlock @@ -143,3 +143,13 @@ def stats(request): renderDict = {**statsDict, **{ "addupsurvexlength":addupsurvexlength/1000, "legsbyexpo":legsbyexpo }} # new syntax 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}) |