summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/apitest/api.py1
-rw-r--r--test/apitest/pzbs.py6
2 files changed, 3 insertions, 4 deletions
diff --git a/test/apitest/api.py b/test/apitest/api.py
index 4a52296..54ae17d 100644
--- a/test/apitest/api.py
+++ b/test/apitest/api.py
@@ -29,7 +29,6 @@ class ApiCalculator(ApiTest):
params['contestants'] = cont_count
params['title_sum'] = cont_rank
if override:
- params['manual'] = {}
if 'points' in override:
params['manual[min_points]'] = override['points']
if 'weight' in override:
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: