diff options
author | emkael <emkael@tlen.pl> | 2015-09-01 11:58:07 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2015-09-01 11:58:07 +0200 |
commit | 71e03d4ea2686538c94f0bc63ef5a89830ff1db3 (patch) | |
tree | f5041d2b44050825747bda4308238a50bb6965e8 /bidding_data.py | |
parent | aead7bbd4a27d26be57f42e399975657bc306429 (diff) |
* round data parsing and checking for board number mapping
Diffstat (limited to 'bidding_data.py')
-rw-r--r-- | bidding_data.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/bidding_data.py b/bidding_data.py index b1c9665..ba467f6 100644 --- a/bidding_data.py +++ b/bidding_data.py @@ -104,15 +104,18 @@ class JFRBidding: # 13th column has JFR number for the first board if len(round_data) > 12: jfr_number = round_data[12] - if jfr_number: + round_no = round_data[2] + sector_no = round_data[0] + table_no = round_data[1] + if jfr_number and round_no: # 5th and 6th - actual board number for board_number in range(int(round_data[5]), int(round_data[6])+1): board_string = '_'.join([ str(board_number), - str(round_data[2]), # round number - str(round_data[0]), # sector number - str(round_data[1])]) # table number + str(round_no), + str(sector_no), + str(table_no)]) self.__board_number_mapping[ board_string] = jfr_number + board_number - \ round_data[5] |