Private
Public Access
1
0

bug fixes

This commit is contained in:
Sander Roosendaal
2017-11-23 10:08:33 +01:00
parent 618e64579c
commit fbdf017676
2 changed files with 11 additions and 4 deletions

View File

@@ -2475,9 +2475,12 @@ def interactive_flex_chart2(id=0,promember=0,
slider_work_max = Slider(start=0.0, end=1500,value=1500.0, step=10,
title="Max Work per Stroke",callback=callback)
callback.args["maxwork"] = slider_work_max
distmax = 100+100*int(rowdata['distance'].max()/100.)
try:
distmax = 100+100*int(rowdata['distance'].max()/100.)
except KeyError:
distmax = 100
slider_dist_min = Slider(start=0,end=distmax,value=0,step=1,
title="Min Distance",callback=callback)
callback.args["mindist"] = slider_dist_min

View File

@@ -3940,6 +3940,7 @@ def oterankings_view(request,theuser=0,
paulintercept = 1
message = res[4]
else:
ratio = 1
script = ''
div = '<p>No ranking pieces found.</p>'
paulslope = 1
@@ -4033,7 +4034,10 @@ def oterankings_view(request,theuser=0,
pwr2 = p1[0]/(1+t/p1[2])
pwr2 += p1[1]/(1+t/p1[3])
pwr2 *= ratio
try:
pwr2 *= ratio
except UnboundLocalError:
pass
if pwr2 <= 0:
pwr2 = 50.