summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2015-09-01 12:13:45 +0200
committeremkael <emkael@tlen.pl>2015-09-01 12:13:45 +0200
commit663b0ce431635ad98908fd53689205d61f21b56f (patch)
tree9f6a7bdf098eb8081fc4fb06c659b4fbdf16124e
parent553b5e01dd60ded1404bd500457eabdf5a875ad2 (diff)
* pep8
-rw-r--r--bidding_data.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/bidding_data.py b/bidding_data.py
index e24ffba..ae789f1 100644
--- a/bidding_data.py
+++ b/bidding_data.py
@@ -117,8 +117,8 @@ class JFRBidding:
str(sector_no),
str(table_no)])
self.__board_number_mapping[
- board_string] = jfr_number + board_number - \
- round_data[5]
+ board_string
+ ] = jfr_number + board_number - round_data[5]
# only include these board numbers from mapping
# which actually exist in JFR output
custom_files = []
@@ -151,7 +151,8 @@ class JFRBidding:
def __init__(self, bws_file, file_prefix):
with pypyodbc.win_connect_mdb(bws_file) as connection:
cursor = connection.cursor()
- self.__lineup_data = cursor.execute('SELECT * FROM RoundData').fetchall()
+ self.__lineup_data = cursor.execute(
+ 'SELECT * FROM RoundData').fetchall()
bid_data = cursor.execute('SELECT * FROM BiddingData').fetchall()
self.__round_lineups = self.__parse_lineup_data(self.__lineup_data)
self.__bids = self.__parse_bidding_data(bid_data)
@@ -286,10 +287,10 @@ if __name__ == '__main__':
argument_parser.add_argument('bws_file', metavar='BWS_FILE',
help='path to BWS file',
- type=file_path)
+ type=file_path)
argument_parser.add_argument('path', metavar='PATH',
help='tournament path (to PREFIX.html)',
- type=file_path)
+ type=file_path)
arguments = argument_parser.parse_args()