From 9261c9eaa7340326603342da74cf3a5f32354067 Mon Sep 17 00:00:00 2001 From: emkael Date: Sat, 10 Dec 2022 15:52:26 +0100 Subject: Fixing fourth hand filling Fixes #8 --- dealconvert/formats/lin.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dealconvert/formats/lin.py b/dealconvert/formats/lin.py index 43c5ac3..57a5205 100644 --- a/dealconvert/formats/lin.py +++ b/dealconvert/formats/lin.py @@ -63,7 +63,10 @@ class LINFormat(DealFormat): def _parse_md_field(self, value): try: hands = value[1:].split(',') - layout = [[], [], [], []] + layout = [[[], [], [], []], + [[], [], [], []], + [[], [], [], []], + [[], [], [], []]] for i, hand in enumerate(hands): layout[(i+2)%4] = self._parse_md_hand(hand) # hands always start from S for j, single_hand in enumerate(layout): -- cgit v1.2.3