more loggin on strava webhooks
This commit is contained in:
@@ -1071,6 +1071,15 @@ def strava_webhook_view(request):
|
||||
ws = Workout.objects.filter(uploadedtostrava=stravaid)
|
||||
if ws.count()==0:
|
||||
job = stravastuff.async_get_workout(r.user,stravaid)
|
||||
else:
|
||||
timestamp = time.strftime('%b-%d-%Y_%H%M', t)
|
||||
with open('strava_webhooks.log','a') as f:
|
||||
f.write('\n')
|
||||
f.write(timestamp)
|
||||
f.write(' ')
|
||||
f.write('Workouts already existing:\n ')
|
||||
for w in ws:
|
||||
f.write('{w} \n'.format(str(w)))
|
||||
elif aspect_type == 'delete':
|
||||
try:
|
||||
stravaid = data['object_id']
|
||||
|
||||
Reference in New Issue
Block a user