summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2022-06-07 16:50:06 +0200
committeremkael <emkael@tlen.pl>2022-06-07 16:50:06 +0200
commit5de5edf347c9cfd492f4ca6ed798a379ba3c21cd (patch)
treec7131d9445cfb850b43ffdd48a629daa280cfcfa
parentc25f34a5b5a1f46932f076d62f958c2f5886af1c (diff)
'10' -> 'T' in TC boards scraper
-rw-r--r--boards/scrapers/tournamentcalculator/scrape.py2
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)))