From b220109aad898c89aaef780f0987d83c12cac7a3 Mon Sep 17 00:00:00 2001 From: MichaƂ Klichowicz Date: Wed, 4 Oct 2023 23:38:57 +0200 Subject: Improved compatibility for Contract field parsing, including (re)doubles --- src/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.py') diff --git a/src/main.py b/src/main.py index d4bd3f0..32cd135 100644 --- a/src/main.py +++ b/src/main.py @@ -147,7 +147,7 @@ def get_current_db_score(db, round_no, segment_no, table, room, board_no): def get_pbn_score(b): - contract = b.get_field('Contract').replace('*', ' x').replace('x x', 'xx') if b.has_field('Contract') else '' + contract = b.get_field('Contract').replace('N', 'NT').replace('X', ' x').replace('*', ' x').replace('x x', 'xx') if b.has_field('Contract') else '' if not contract: return None, None, None, None, None declarer = b.get_field('Declarer') if b.has_field('Declarer') else '' -- cgit v1.2.3