Private
Public Access
1
0

fixing NK import summary error

This commit is contained in:
2025-06-19 07:59:00 +02:00
parent 66d519526c
commit ba0b86a79d
3 changed files with 10 additions and 2 deletions

View File

@@ -64,7 +64,10 @@ def add_workout_from_data(userid, nkid, data, strokedata, source='nk', splitdata
totalDistance = totalDistanceImp totalDistance = totalDistanceImp
useImpeller = True useImpeller = True
try:
summary = get_nk_allstats(data, strokedata) summary = get_nk_allstats(data, strokedata)
except Exception: # pragma: no cover
summary = "error generating summary\n"
speedInput = data['speedInput'] # 0 = GPS; 1 = Impeller speedInput = data['speedInput'] # 0 = GPS; 1 = Impeller

Binary file not shown.

View File

@@ -960,7 +960,12 @@ def rower_register_view(request):
email = EmailMessage( email = EmailMessage(
mail_subject, message, to=[to_email] mail_subject, message, to=[to_email]
) )
try:
email.send() email.send()
except Exception as e:
# send through alternative email server
pass
return render(request, 'confirmemailpage.html', {'address': to_email}) return render(request, 'confirmemailpage.html', {'address': to_email})
# login(request,theuser) # login(request,theuser)