bug fix
This commit is contained in:
@@ -4424,7 +4424,6 @@ def workout_upload_api(request):
|
|||||||
optionsform = TeamUploadOptionsForm(post_data)
|
optionsform = TeamUploadOptionsForm(post_data)
|
||||||
rowerform = TeamInviteForm(post_data)
|
rowerform = TeamInviteForm(post_data)
|
||||||
rowerform.fields.pop('email')
|
rowerform.fields.pop('email')
|
||||||
fstr = ''
|
|
||||||
try:
|
try:
|
||||||
fstr = post_data['file']
|
fstr = post_data['file']
|
||||||
nn, ext = os.path.splitext(fstr)
|
nn, ext = os.path.splitext(fstr)
|
||||||
@@ -4542,7 +4541,7 @@ def workout_upload_api(request):
|
|||||||
|
|
||||||
if r.getemailnotifications and not r.emailbounced:
|
if r.getemailnotifications and not r.emailbounced:
|
||||||
link = settings.SITE_URL+reverse(
|
link = settings.SITE_URL+reverse(
|
||||||
therower.defaultlandingpage,
|
r.defaultlandingpage,
|
||||||
kwargs = {
|
kwargs = {
|
||||||
'id':encoder.encode_hex(w.id),
|
'id':encoder.encode_hex(w.id),
|
||||||
}
|
}
|
||||||
@@ -4554,6 +4553,7 @@ def workout_upload_api(request):
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# This is the main view for processing uploaded files
|
# This is the main view for processing uploaded files
|
||||||
@login_required()
|
@login_required()
|
||||||
def workout_upload_view(request,
|
def workout_upload_view(request,
|
||||||
|
|||||||
Reference in New Issue
Block a user