Skip to content

Commit

Permalink
changes default maps url and moves field type tu 'url'
Browse files Browse the repository at this point in the history
  • Loading branch information
bb-Ricardo committed Apr 4, 2023
1 parent ed0ee8e commit c3e6e70
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config-example.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion config/models/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion source/manage_event_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

Expand Down

0 comments on commit c3e6e70

Please sign in to comment.