removing debug messgs
This commit is contained in:
@@ -4406,7 +4406,6 @@ def workout_upload_api(request):
|
||||
except (KeyError,JSONDecodeError):
|
||||
post_data = request.POST
|
||||
|
||||
print(post_data)
|
||||
|
||||
# only allow local host
|
||||
hostt = request.get_host().split(':')
|
||||
@@ -4447,7 +4446,6 @@ def workout_upload_api(request):
|
||||
try:
|
||||
stravaid = post_data['stravaid']
|
||||
except KeyError:
|
||||
print(post_data)
|
||||
stravaid = ''
|
||||
|
||||
if form.is_valid():
|
||||
@@ -4501,9 +4499,7 @@ def workout_upload_api(request):
|
||||
|
||||
w = Workout.objects.get(id=id)
|
||||
if len(stravaid)>0:
|
||||
print('setting Strava id',stravaid)
|
||||
w.uploadedtostrava = stravaid
|
||||
print(w,w.id,w.user)
|
||||
w.save()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user