double t assignment corrected
This commit is contained in:
@@ -2744,8 +2744,8 @@ def fetch_strava_workout(stravatoken,oauth_data,stravaid,csvfilename,userid,debu
|
||||
url = "https://www.strava.com/api/v3/activities/"+str(stravaid)
|
||||
response = requests.get(url,headers=headers)
|
||||
if response.status_code != 200:
|
||||
t = time.localtime()
|
||||
timestamp = time.strftime('%b-%d-%Y_%H%M', t)
|
||||
tstamp = time.localtime()
|
||||
timestamp = time.strftime('%b-%d-%Y_%H%M', tstamp)
|
||||
with open('strava_webhooks.log','a') as f:
|
||||
f.write('\n')
|
||||
f.write(timestamp)
|
||||
@@ -2781,8 +2781,8 @@ def fetch_strava_workout(stravatoken,oauth_data,stravaid,csvfilename,userid,debu
|
||||
coords = get_strava_stream(None,'latlng',stravaid,authorizationstring=authorizationstring)
|
||||
power = get_strava_stream(None,'watts',stravaid,authorizationstring=authorizationstring)
|
||||
|
||||
t = time.localtime()
|
||||
timestamp = time.strftime('%b-%d-%Y_%H%M', t)
|
||||
tstamp = time.localtime()
|
||||
timestamp = time.strftime('%b-%d-%Y_%H%M', tstamp)
|
||||
with open('strava_webhooks.log','a') as f:
|
||||
f.write('\n')
|
||||
f.write(timestamp)
|
||||
@@ -2840,7 +2840,7 @@ def fetch_strava_workout(stravatoken,oauth_data,stravaid,csvfilename,userid,debu
|
||||
|
||||
|
||||
|
||||
strokelength = velo2*60./(spm)
|
||||
strokelength = velo*60./(spm)
|
||||
strokelength[np.isinf(strokelength)] = 0.0
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user