OSM: Allow leisure tag in nominatim fallback results.

This commit is contained in:
projectmoon 2024-08-05 10:13:41 +02:00
parent bf4a998e21
commit 4ea0b2b292
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,8 @@
# OpenStreetMap Tool
**0.2.3:**
- Allow leisure tags in nominatim fallback results.
**0.2.1:**
- Only print secondary results if they exist.
- Remove extraneous print logging.

3
osm.py
View File

@ -2,7 +2,7 @@
title: OpenStreetMap Tool
author: projectmoon
author_url: https://git.agnos.is/projectmoon/open-webui-filters
version: 0.2.1
version: 0.2.2
license: AGPL-3.0+
required_open_webui_version: 0.3.9
"""
@ -112,6 +112,7 @@ class OsmSearcher:
return ([nominatim_result] if 'type' in nominatim_result
and (nominatim_result['type'] == 'amenity'
or nominatim_result['type'] == 'shop'
or nominatim_result['type'] == 'leisure
or nominatim_result['type'] == 'tourism')
else [])