From 6550643eab0328bf857e1cbdaaf904ab7a8b64b2 Mon Sep 17 00:00:00 2001 From: emkael Date: Sat, 12 Sep 2015 23:32:10 +0200 Subject: * we're reading directly from BWS, we don't need to skip the first row of data --- src/bidding_data.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/bidding_data.py') diff --git a/src/bidding_data.py b/src/bidding_data.py index 147d5b0..8ade583 100644 --- a/src/bidding_data.py +++ b/src/bidding_data.py @@ -19,7 +19,7 @@ class JFRBidding: # {round}.{sector}_{table}.{pair numbers} structure def __parse_lineup_data(self, sitting_data): round_lineups = {} - for sitting in sitting_data[1:]: + for sitting in sitting_data: round_no = sitting[2] table_no = str(sitting[0]) + '_' + str(sitting[1]) if round_no not in round_lineups: @@ -33,7 +33,7 @@ class JFRBidding: # including erased calls def __parse_bidding_data(self, bidding_data): bids = {} - for bid in bidding_data[1:]: + for bid in bidding_data: round_no = bid[3] table_no = str(bid[1]) + '_' + str(bid[2]) board_no = str(bid[4]) + '_' + str(round_no) + '_' + table_no -- cgit v1.2.3