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

@@ -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.