summaryrefslogtreecommitdiff
path: root/test/apitest/pzbs.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/apitest/pzbs.py')
-rw-r--r--test/apitest/pzbs.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/apitest/pzbs.py b/test/apitest/pzbs.py
index 1a1f69f..84488ff 100644
--- a/test/apitest/pzbs.py
+++ b/test/apitest/pzbs.py
@@ -43,12 +43,12 @@ class PzbsCalculator(ApiTest):
params['iuc'] = cont_count
params['izw'] = cont_count * self.tourtypes[tour_type]
params['swk'] = cont_rank
- params['srd'] = cont_rank / (cont_count * self.tourtypes[tour_type])
+ params['srd'] = max(0.15, cont_rank / (cont_count * self.tourtypes[tour_type]))
if override:
if 'points' in override:
- params['min' + str(params['typ']) + '_'*params['rozdan']] = override['points']
+ params['min' + str(params['rng']) + '_'*params['rozdan']] = override['points']
if 'weight' in override:
- params['r' + ['', 'gg', 'gp', 'ot', 'ok1', 'ok', 'tp', 'to', 'tk'][params['typ']] + '_'*params['rozdan']] = override['weight']
+ params['r' + ['', 'gg', 'gp', 'ot', 'ok1', 'ok', 'tp', 'to', 'tk'][params['rng']] + '_'*params['rozdan']] = override['weight']
if 'players' in override:
params['zaw'] = override['players']
if 'cutoff' in override: