diff options
author | emkael <emkael@tlen.pl> | 2016-05-02 15:54:03 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2016-05-02 15:54:03 +0200 |
commit | 9797bd898f435ba04475ab2e38597e59318474b9 (patch) | |
tree | 308c7fe9626947f058a4d20144b7b46708cc64a8 /f1elo/interface.py | |
parent | 1d4f2c970b29f7870577a74d450e4ecc3113741c (diff) |
* results log sorted
Diffstat (limited to 'f1elo/interface.py')
-rw-r--r-- | f1elo/interface.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/f1elo/interface.py b/f1elo/interface.py index f51bc9e..77307ae 100644 --- a/f1elo/interface.py +++ b/f1elo/interface.py @@ -86,7 +86,7 @@ class Interface: podium_rating_after = 0 rating_sum = 0 rating_change_sum = 0 - for entry in race.entries: + for entry in sorted(race.entries): old_rating = elo.get_entry_ranking(entry, race.date - dateutil.relativedelta.relativedelta(days=1)) new_rating = elo.get_entry_ranking(entry) |