summaryrefslogtreecommitdiff
path: root/f1elo
diff options
context:
space:
mode:
Diffstat (limited to 'f1elo')
-rw-r--r--f1elo/elo.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/f1elo/elo.py b/f1elo/elo.py
index 5e6986c..6a007d8 100644
--- a/f1elo/elo.py
+++ b/f1elo/elo.py
@@ -39,9 +39,9 @@ class Elo:
def get_importance(self, race, rankings):
base_importance = self.config['importance'][race.type.code]
min_rank = min(rankings)
- if min_rank < 2100:
+ if min_rank < min(self.config['importance_threshold']):
return base_importance
- if min_rank <= 2400:
+ if min_rank <= max(self.config['importance_threshold']):
return base_importance * 0.75
return base_importance / 2