bug fix sporttracks no gps
This commit is contained in:
@@ -9,6 +9,8 @@ from rowsandall_app.settings import (
|
||||
SPORTTRACKS_REDIRECT_URI
|
||||
)
|
||||
|
||||
import mytypes
|
||||
|
||||
oauth_data = {
|
||||
'client_id': SPORTTRACKS_CLIENT_ID,
|
||||
'client_secret': SPORTTRACKS_CLIENT_SECRET,
|
||||
@@ -346,7 +348,7 @@ def add_workout_from_data(user,importid,data,strokedata,source='sporttracks',
|
||||
times_location = times_distance
|
||||
latcoord = np.zeros(len(times_distance))
|
||||
loncoord = np.zeros(len(times_distance))
|
||||
if workouttype in types.otwtypes:
|
||||
if workouttype in mytypes.otwtypes:
|
||||
workouttype = 'rower'
|
||||
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user