From 6e8c2356d1b902a91c1ede651c679d7a9b72e866 Mon Sep 17 00:00:00 2001 From: Alexander Roidl Date: Thu, 1 Dec 2022 10:53:41 +0100 Subject: [PATCH] fix default text GPS ; exit () --- app/templates/home.html | 2 +- app/views.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/templates/home.html b/app/templates/home.html index 6009a6b..e6b843b 100755 --- a/app/templates/home.html +++ b/app/templates/home.html @@ -2,7 +2,7 @@ {% block main %}
-

+

Your location could not be read.
Make sure to activate GPS

diff --git a/app/views.py b/app/views.py index 10e43d4..b367631 100755 --- a/app/views.py +++ b/app/views.py @@ -74,9 +74,8 @@ def test(lng, lat): return lng +" " +lat - @app.route('/addhangout///', methods=['POST', 'GET']) -def add_hangout(lng, lat): +def add_hangout(lng = None, lat = None): upload_form = UploadLocation() longitude =lng latitude = lat