more quick fixes
This commit is contained in:
@@ -508,7 +508,11 @@ def make_private(w,options):
|
|||||||
return 1
|
return 1
|
||||||
|
|
||||||
def do_sync(w,options):
|
def do_sync(w,options):
|
||||||
upload_to_strava = options['upload_to_Strava']
|
try:
|
||||||
|
upload_to_strava = options['upload_to_Strava']
|
||||||
|
except KeyError:
|
||||||
|
upload_to_strava = False
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if options['stravaid'] != 0 and options['stravaid'] != '':
|
if options['stravaid'] != 0 and options['stravaid'] != '':
|
||||||
w.uploadedtostrava = options['stravaid']
|
w.uploadedtostrava = options['stravaid']
|
||||||
|
|||||||
@@ -4405,7 +4405,7 @@ def workout_upload_api(request):
|
|||||||
secret = json_data['secret']
|
secret = json_data['secret']
|
||||||
post_data = json_data
|
post_data = json_data
|
||||||
except (KeyError,JSONDecodeError):
|
except (KeyError,JSONDecodeError):
|
||||||
post_data = request.POST
|
post_data = dict(request.POST.iterlists())
|
||||||
|
|
||||||
# only allow local host
|
# only allow local host
|
||||||
hostt = request.get_host().split(':')
|
hostt = request.get_host().split(':')
|
||||||
|
|||||||
Reference in New Issue
Block a user