From 4324650709e580770ce878b0ac1a0a0d74fde59c Mon Sep 17 00:00:00 2001 From: Burathar Date: Thu, 9 Jul 2020 23:36:44 +0200 Subject: [PATCH] don't get qrcode when creating a new objective --- app/templates/objective.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/templates/objective.html b/app/templates/objective.html index 47e4b0f..07b9cc5 100644 --- a/app/templates/objective.html +++ b/app/templates/objective.html @@ -9,7 +9,7 @@ {% block app_content %} -{% if objective.hash is none %} +{% if not objective.hash %}

Add Objective

{% elif objective.name == '' %}

Objective

@@ -34,9 +34,11 @@ {% endif %} + {% if objective.hash %}
qr_code_failed
+ {% endif %} {% else %}

latitude: {{ objective.latitude }}

longitude: {{ objective.longitude }}