Skip to content

Commit

Permalink
feat: add timeout to pelias configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
pmayer committed May 10, 2023
1 parent 7225e8d commit 95e9dbf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/portfolio/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,7 @@
apiconfig.URL: f'{PELIAS_API_URL}/autocomplete',
apiconfig.QUERY_FIELD: 'text',
apiconfig.QUERY_SUFFIX_WILDCARD: True,
apiconfig.TIMEOUT: 10,
apiconfig.PAYLOAD: {
**({'api_key': PELIAS_API_KEY} if 'PAYLOAD' in PELIAS_API_KEY_LOCATION else {}),
'focus.point.lat': env.float('PELIAS_FOCUS_POINT_LAT', default=48.208126),
Expand Down

0 comments on commit 95e9dbf

Please sign in to comment.