summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2022-12-10 15:52:26 +0100
committeremkael <emkael@tlen.pl>2022-12-10 15:52:26 +0100
commit9261c9eaa7340326603342da74cf3a5f32354067 (patch)
tree7dca3060b31185c5b6251890c0cdec84cb7abeb2
parent5b26785392c0f723e471a45e5537cc3c5c740e90 (diff)
Fixing fourth hand filling
Fixes #8
-rw-r--r--dealconvert/formats/lin.py5
1 files changed, 4 insertions, 1 deletions
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):