commit
This commit is contained in:
@@ -215,7 +215,6 @@ def alertenddate(list,i):
|
|||||||
def is_coach(rower,rowers):
|
def is_coach(rower,rowers):
|
||||||
for r in rowers:
|
for r in rowers:
|
||||||
if rower not in rower_get_managers(r):
|
if rower not in rower_get_managers(r):
|
||||||
print(r,rower)
|
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return True
|
return True
|
||||||
@@ -256,7 +255,6 @@ def hrmajorticks(maxval,minval):
|
|||||||
for t in ticks:
|
for t in ticks:
|
||||||
newticks.append(100+t*20)
|
newticks.append(100+t*20)
|
||||||
|
|
||||||
print(newticks)
|
|
||||||
return newticks
|
return newticks
|
||||||
|
|
||||||
def strfdeltah(tdelta):
|
def strfdeltah(tdelta):
|
||||||
|
|||||||
@@ -3502,19 +3502,19 @@ def workout_stats_view(request,id=0,message="",successmessage=""):
|
|||||||
goldmedalstandard,goldmedalseconds = dataprep.workout_goldmedalstandard(w)
|
goldmedalstandard,goldmedalseconds = dataprep.workout_goldmedalstandard(w)
|
||||||
|
|
||||||
|
|
||||||
#if not np.isnan(goldmedalstandard) and goldmedalstandard > 0:
|
if not np.isnan(goldmedalstandard) and goldmedalstandard > 0:
|
||||||
# otherstats['goldmedalstandard'] = {
|
otherstats['goldmedalstandard'] = {
|
||||||
# 'verbose_name': 'Gold Medal Standard',
|
'verbose_name': 'Gold Medal Standard',
|
||||||
# 'value': int(goldmedalstandard),
|
'value': int(goldmedalstandard),
|
||||||
# 'unit': '%',
|
'unit': '%',
|
||||||
# }
|
}
|
||||||
|
|
||||||
#if not np.isnan(goldmedalseconds) and goldmedalseconds > 0:
|
if not np.isnan(goldmedalseconds) and goldmedalseconds > 0:
|
||||||
# otherstats['goldmedalseconds'] = {
|
otherstats['goldmedalseconds'] = {
|
||||||
# 'verbose_name': 'Gold Medal Standard Duration',
|
'verbose_name': 'Gold Medal Standard Duration',
|
||||||
# 'value': utils.totaltime_sec_to_string(goldmedalseconds,shorten=True),
|
'value': utils.totaltime_sec_to_string(goldmedalseconds,shorten=True),
|
||||||
# 'unit': '',
|
'unit': '',
|
||||||
# }
|
}
|
||||||
|
|
||||||
|
|
||||||
if not np.isnan(tss) and tss != 0:
|
if not np.isnan(tss) and tss != 0:
|
||||||
|
|||||||
Reference in New Issue
Block a user