diff options
author | Michał Klichowicz <emkael@tlen.pl> | 2023-10-04 23:38:57 +0200 |
---|---|---|
committer | Michał Klichowicz <emkael@tlen.pl> | 2023-10-04 23:38:57 +0200 |
commit | b220109aad898c89aaef780f0987d83c12cac7a3 (patch) | |
tree | 61f1749844f75ad2923ccaa2b0cf8071da214a6f | |
parent | 314123c854bd808fc51e2d72694ef13becf581da (diff) |
Improved compatibility for Contract field parsing, including (re)doubles
-rw-r--r-- | src/main.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 '' |