bdd: fix faking HTTP headers for python web frameworks

This commit is contained in:
Sarah Hoffmann
2023-06-21 11:33:42 +02:00
parent 3a21999a17
commit 0d338fa4c0
2 changed files with 4 additions and 4 deletions

View File

@@ -83,7 +83,7 @@ def extend_query_parts(queryparts: Dict[str, Any], details: Dict[str, Any],
if parsed.countries:
queryparts['countrycodes'] = ','.join(parsed.countries)
queryparts['exclude_place_ids'] = \
','.join(chain(excluded, map(str, parsed.excluded)))
','.join(chain(excluded, map(str, (e for e in parsed.excluded if e > 0))))
if parsed.viewbox:
queryparts['viewbox'] = ','.join(f"{c:.7g}" for c in parsed.viewbox.coords)
if parsed.bounded_viewbox: