Private
Public Access
1
0

Merge branch 'release/v22.1.17'

This commit is contained in:
2024-07-26 17:34:38 +02:00
3 changed files with 6 additions and 2 deletions

View File

@@ -1,4 +1,5 @@
from django.utils import timezone
import datetime as dt
from rowers.models import Workout, VirtualRaceResult, CourseTestResult
def timefield_to_seconds_duration(t):

View File

@@ -3904,8 +3904,11 @@ def fetch_strava_workout(stravatoken, oauth_data, stravaid, csvfilename, userid,
lat = np.zeros(len(t))
lon = np.zeros(len(t))
strokelength = velo*60./(spm)
strokelength[np.isinf(strokelength)] = 0.0
try:
strokelength = velo*60./(spm)
strokelength[np.isinf(strokelength)] = 0.0
except ValueError:
strokelength = np.zeros(len(t))
pace = 500./(1.0*velo2)
pace[np.isinf(pace)] = 0.0

Binary file not shown.