diff options
author | emkael <emkael@tlen.pl> | 2022-06-07 16:50:06 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2022-06-07 16:50:06 +0200 |
commit | 5de5edf347c9cfd492f4ca6ed798a379ba3c21cd (patch) | |
tree | c7131d9445cfb850b43ffdd48a629daa280cfcfa | |
parent | c25f34a5b5a1f46932f076d62f958c2f5886af1c (diff) |
'10' -> 'T' in TC boards scraper
-rw-r--r-- | boards/scrapers/tournamentcalculator/scrape.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/boards/scrapers/tournamentcalculator/scrape.py b/boards/scrapers/tournamentcalculator/scrape.py index fcdd8b8..1d79d8a 100644 --- a/boards/scrapers/tournamentcalculator/scrape.py +++ b/boards/scrapers/tournamentcalculator/scrape.py @@ -44,7 +44,7 @@ for idx, board_set in enumerate(board_sets): hand_record = [] for suit in ['Spades', 'Hearts', 'Diamonds', 'Clubs']: hand_record.append(board['_handRecord']['Hand%s' % (hand)][suit]) - board_record.append('.'.join(hand_record)) + board_record.append('.'.join(hand_record).replace('10', 'T')) output_file.write('[Board "%d"]\n' % (board_number)) output_file.write('[Dealer "%s"]\n' % (['W', 'N', 'E', 'S'][board_number % 4])) output_file.write('[Deal "N:%s"]\n' % (' '.join(board_record))) |