From b6e59b54de805d1a8704c1b06f176005e744ee7a Mon Sep 17 00:00:00 2001 From: steffen123 Date: Wed, 25 Aug 2010 06:37:22 +0200 Subject: [PATCH] fix that it creates a new TT for each tourney when maxseats is unknown. --- pyfpdb/Hand.py | 2 +- pyfpdb/TourneySummary.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyfpdb/Hand.py b/pyfpdb/Hand.py index aa048ae4..0973141f 100644 --- a/pyfpdb/Hand.py +++ b/pyfpdb/Hand.py @@ -77,7 +77,7 @@ class Hand(object): self.dbid_gt = 0 self.tablename = "" self.hero = "" - self.maxseats = None + self.maxseats = 0 self.counted_seats = 0 self.buttonpos = 0 diff --git a/pyfpdb/TourneySummary.py b/pyfpdb/TourneySummary.py index 7b3aa5be..105141d5 100644 --- a/pyfpdb/TourneySummary.py +++ b/pyfpdb/TourneySummary.py @@ -77,7 +77,7 @@ class TourneySummary(object): self.buyin = None self.fee = None self.hero = None - self.maxseats = None + self.maxseats = 0 self.entries = 0 self.speed = "Normal" self.prizepool = 0 # Make it a dict in order to deal (eventually later) with non-money winnings : {'MONEY' : amount, 'OTHER' : Value ??}