bug fixes
This commit is contained in:
@@ -112,7 +112,6 @@ class Command(BaseCommand):
|
||||
for r in rowers: # pragma: no cover
|
||||
dologging("nklog.log","NK Auto import set for rower {id}".format(id=r.user.id))
|
||||
if user_is_not_basic(r.user) or user_is_coachee(r.user):
|
||||
dologging("nklog.log","User is not basic")
|
||||
_ = nkstuff.get_nk_workouts(r)
|
||||
except: # pragma: no cover
|
||||
exc_type, exc_value, exc_traceback = sys.exc_info()
|
||||
|
||||
@@ -1168,8 +1168,6 @@ def handle_calctrimp(id,
|
||||
normw = response.normw
|
||||
hrtss = response.hrtss
|
||||
|
||||
print('normalized power',normp)
|
||||
|
||||
if np.isnan(tss): # pragma: no cover
|
||||
tss = 0
|
||||
|
||||
@@ -1699,6 +1697,9 @@ def handle_sendemail_breakthrough(workoutid, useremail,
|
||||
'btvalues': tablevalues,
|
||||
}
|
||||
|
||||
dologging('tasks.log',siteurl)
|
||||
dologging('tasks.log',json.dumps(tablevalues))
|
||||
|
||||
_ = send_template_email(from_email, [useremail],
|
||||
subject, 'breakthroughemail.html',
|
||||
d, **kwargs)
|
||||
|
||||
Reference in New Issue
Block a user