summaryrefslogtreecommitdiff
path: root/f1elo/model.py
diff options
context:
space:
mode:
Diffstat (limited to 'f1elo/model.py')
-rw-r--r--f1elo/model.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/f1elo/model.py b/f1elo/model.py
index 3c27ac9..2fc4c0c 100644
--- a/f1elo/model.py
+++ b/f1elo/model.py
@@ -20,7 +20,7 @@ class Driver(Base):
def get_ranking(self, rank_date=None):
ranks = self.rankings
if rank_date is not None:
- ranks = [r for r in ranks if r.rank_date < rank_date]
+ ranks = [r for r in ranks if r.rank_date <= rank_date]
if len(ranks):
return ranks[-1]
return None