diff options
author | emkael <emkael@tlen.pl> | 2018-01-22 14:36:01 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2018-01-22 14:36:01 +0100 |
commit | 2947c609534ac652380d020df5d9a3023f222b60 (patch) | |
tree | fbb6655f503f7c4e5969327351606fb8e8fe238f | |
parent | b216c52e6a13c746787b1885deceef60a689970a (diff) |
Bugfix: swiss property as stated in documentation
-rw-r--r-- | jfr_playoff/data.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jfr_playoff/data.py b/jfr_playoff/data.py index 6598f33..435b4b6 100644 --- a/jfr_playoff/data.py +++ b/jfr_playoff/data.py @@ -191,8 +191,8 @@ class PlayoffData(object): swiss_results = sorted( swiss_results, key=lambda t: t[1], reverse=True) swiss_position = ( - event['source_position'] - if 'source_position' in event + event['swiss_position'] + if 'swiss_position' in event else 1 ) position_limit = ( |