diff options
author | emkael <emkael@tlen.pl> | 2014-10-29 15:16:15 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2014-10-29 15:16:15 +0100 |
commit | fe87e8d7f43b4a8fe6a401e032d136c348dd5531 (patch) | |
tree | 7cab5e765fed09799eacd93559bd99f1d50fc835 | |
parent | d9c73484f013ed61b41eb24330b2f6190ad13cdb (diff) |
* bugfix for obtaining driver ranking
-rw-r--r-- | f1elo/model.py | 2 |
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 |