fixing NK import summary error
This commit is contained in:
@@ -64,7 +64,10 @@ def add_workout_from_data(userid, nkid, data, strokedata, source='nk', splitdata
|
||||
totalDistance = totalDistanceImp
|
||||
useImpeller = True
|
||||
|
||||
try:
|
||||
summary = get_nk_allstats(data, strokedata)
|
||||
except Exception: # pragma: no cover
|
||||
summary = "error generating summary\n"
|
||||
|
||||
speedInput = data['speedInput'] # 0 = GPS; 1 = Impeller
|
||||
|
||||
|
||||
BIN
rowers/tests/testdata/testdata.tcx.gz
vendored
BIN
rowers/tests/testdata/testdata.tcx.gz
vendored
Binary file not shown.
@@ -960,7 +960,12 @@ def rower_register_view(request):
|
||||
email = EmailMessage(
|
||||
mail_subject, message, to=[to_email]
|
||||
)
|
||||
try:
|
||||
email.send()
|
||||
except Exception as e:
|
||||
# send through alternative email server
|
||||
pass
|
||||
|
||||
return render(request, 'confirmemailpage.html', {'address': to_email})
|
||||
|
||||
# login(request,theuser)
|
||||
|
||||
Reference in New Issue
Block a user