From 2947c609534ac652380d020df5d9a3023f222b60 Mon Sep 17 00:00:00 2001 From: emkael Date: Mon, 22 Jan 2018 14:36:01 +0100 Subject: Bugfix: swiss property as stated in documentation --- jfr_playoff/data.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'jfr_playoff/data.py') 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 = ( -- cgit v1.2.3