From 02fdcf307e0d0703907c087bf155a737dd928c0e Mon Sep 17 00:00:00 2001 From: Eric Blade Date: Sun, 7 Nov 2010 20:08:56 -0500 Subject: [PATCH] reset AP/UB horse games to 8 seat support Everleaf 4-seat (need a layout, i can't get into the games) --- pyfpdb/AbsoluteToFpdb.py | 2 +- pyfpdb/EverleafToFpdb.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pyfpdb/AbsoluteToFpdb.py b/pyfpdb/AbsoluteToFpdb.py index c30f4544..bd6f7b9f 100755 --- a/pyfpdb/AbsoluteToFpdb.py +++ b/pyfpdb/AbsoluteToFpdb.py @@ -219,7 +219,7 @@ class Absolute(HandHistoryConverter): hand.maxseats = 6 if self.HORSEHand: - hand.maxseats = 9 + hand.maxseats = 8 # todo : unless it's heads up!!? return def readPlayerStacks(self, hand): diff --git a/pyfpdb/EverleafToFpdb.py b/pyfpdb/EverleafToFpdb.py index 3f87a21c..c24e3329 100755 --- a/pyfpdb/EverleafToFpdb.py +++ b/pyfpdb/EverleafToFpdb.py @@ -179,6 +179,8 @@ or None if we fail to get the info """ elif seatnum > 6: hand.maxseats = 8 # everleaf currently does 2/6/10 games, so if seats > 6 are in use, it must be 10-max. # TODO: implement lookup list by table-name to determine maxes, then fall back to 6 default/10 here, if there's no entry in the list? + elif seatnum > 4: + hand.maxseats = 6 # they added 4-seat games too! def markStreets(self, hand):