From 923c0a891401b005c92acf47f5829c498bab0f7c Mon Sep 17 00:00:00 2001 From: Sebastian Lohff Date: Thu, 26 Jan 2017 23:59:21 +0100 Subject: [PATCH] Only show cbr table when data is present --- contest/cbrparser.py | 2 -- templates/contest/uploadCBR.html | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/contest/cbrparser.py b/contest/cbrparser.py index af997f8..bc25fda 100644 --- a/contest/cbrparser.py +++ b/contest/cbrparser.py @@ -145,8 +145,6 @@ def uploadCBR(request): messages.warnnig(request, "CBR file was parsed, but no QSOs could be saved, as all cointained errors.") return HttpResponseRedirect(reverse("contest:uploadCBR")) - else: - pass else: form = CBRForm() else: diff --git a/templates/contest/uploadCBR.html b/templates/contest/uploadCBR.html index c7d538c..a678192 100644 --- a/templates/contest/uploadCBR.html +++ b/templates/contest/uploadCBR.html @@ -40,7 +40,7 @@ {% endif %} - + {% if verifyData %} @@ -57,6 +57,7 @@ {% endfor %}
+ {% endif %}