on master help sign in
[fix] resolve pep8 errors
commitaa7c043ff40bd1c1ec2e81748627aeac24608580 authorAdam Tauber <asciimoo@gmail.com> dateWed 10 Jun 2020, 00:34 (6 years ago) parent43f7b84
1 file changed+1−2
searx/engines/openstreetmap.py+1−2
searx/engines/openstreetmap.py+1−2
@@ -23,7 +23,7 @@ base_url = 'https://nominatim.openstreetmap.org/'
2323search_string = 'search/{query}?format=json&polygon_geojson=1&addressdetails=1'
2424result_base_url = 'https://openstreetmap.org/{osm_type}/{osm_id}'
2525
26−route_url = 'https://graphhopper.com/maps/?point={}&point={}&locale=en-US&vehicle=car&weighting=fastest&turn_costs=true&use_miles=false&layer=Omniscale'
26+route_url = 'https://graphhopper.com/maps/?point={}&point={}&locale=en-US&vehicle=car&weighting=fastest&turn_costs=true&use_miles=false&layer=Omniscale' # noqa
2727route_re = re.compile('(?:from )?(.+) to (.+)')
2828
2929
@@ -41,7 +41,6 @@ def response(resp):
4141 results = []
4242 json = loads(resp.text)
4343
44−
4544 if resp.search_params['route']:
4645 results.append({
4746 'answer': gettext('Get directions'),