From c3e6e7077c4577820dd8fdd04773ce03e5a49d3d Mon Sep 17 00:00:00 2001 From: Ricardo Date: Tue, 4 Apr 2023 23:24:27 +0200 Subject: [PATCH] changes default maps url and moves field type tu 'url' --- config-example.ini | 2 +- config/models/app.py | 2 +- source/manage_event_fields.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config-example.ini b/config-example.ini index 0c50fa3..4821ffa 100644 --- a/config-example.ini +++ b/config-example.ini @@ -97,7 +97,7 @@ hash_kennels = Nerd H3, Nerd Full Moon H3 # Define a maps url (google, apple, open street map) template, # params "lat" and "long" will be substituted if present for a run # and field "Maps Location URL" has not been defined. -#maps_url_template = "https://www.google.com/maps/search/?api=1&query={lat},{long}" +#maps_url_template = https://www.openstreetmap.org/?mlat={lat}&mlon={long}#map=17/{lat}/{long} ### ### [listmonk] diff --git a/config/models/app.py b/config/models/app.py index 54c2011..d97004c 100644 --- a/config/models/app.py +++ b/config/models/app.py @@ -17,7 +17,7 @@ log = get_logger() -maps_url_template = "https://www.google.com/maps/search/?api=1&query={lat},{long}" +maps_url_template = "https://www.openstreetmap.org/?mlat={lat}&mlon={long}#map=17/{lat}/{long}" # noinspection PyMethodParameters diff --git a/source/manage_event_fields.py b/source/manage_event_fields.py index 0879359..ecacc91 100644 --- a/source/manage_event_fields.py +++ b/source/manage_event_fields.py @@ -112,7 +112,7 @@ def __init__(self): "label": "Maps Location URL", "description": "Add an maps URL with a specific location", "required": False, - "type": "text" + "type": "url" } }