Skip to content

Commit 0228812

Browse files
author
kmorin
committed
add timeout to request to open elevation
1 parent 573136f commit 0228812

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fittrackee/workouts/services/workout_from_file/workout_fit_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def parse_file(
189189
for segment in gpx_track.segments:
190190
for point in segment.points:
191191
data.append({'latitude': point.latitude, 'longitude': point.longitude})
192-
elevations = requests.post(url, json = { 'locations': data })
192+
elevations = requests.post(url, json = { 'locations': data }, timeout=(3.05, 27))
193193
results = elevations.json().get('results')
194194
index = 0
195195
for segment in gpx_track.segments:

0 commit comments

Comments
 (0)