From b820cd4895ac6039fbe29df22efc3b2972f2d949 Mon Sep 17 00:00:00 2001 From: Chaz Date: Wed, 24 Nov 2010 14:49:39 -0600 Subject: [PATCH] * Old Stars HHs don't display max seats. Added regression-test-file showing this and handling in the Stars HHC --- pyfpdb/PokerStarsToFpdb.py | 2 +- .../LHE-10-max-USD-1.00-2.00-No_max_seats.txt | 42 +++++++++++++++++++ 2 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 pyfpdb/regression-test-files/cash/Stars/Flop/LHE-10-max-USD-1.00-2.00-No_max_seats.txt diff --git a/pyfpdb/PokerStarsToFpdb.py b/pyfpdb/PokerStarsToFpdb.py index 16c4091e..3817ae3f 100644 --- a/pyfpdb/PokerStarsToFpdb.py +++ b/pyfpdb/PokerStarsToFpdb.py @@ -298,7 +298,7 @@ class PokerStars(HandHistoryConverter): if key == 'BUTTON': hand.buttonpos = info[key] if key == 'MAX': - hand.maxseats = int(info[key]) + if info[key]: hand.maxseats = int(info[key]) if key == 'MIXED': hand.mixed = self.mixes[info[key]] if info[key] is not None else None diff --git a/pyfpdb/regression-test-files/cash/Stars/Flop/LHE-10-max-USD-1.00-2.00-No_max_seats.txt b/pyfpdb/regression-test-files/cash/Stars/Flop/LHE-10-max-USD-1.00-2.00-No_max_seats.txt new file mode 100644 index 00000000..173da216 --- /dev/null +++ b/pyfpdb/regression-test-files/cash/Stars/Flop/LHE-10-max-USD-1.00-2.00-No_max_seats.txt @@ -0,0 +1,42 @@ +PokerStars Game #2428142447: Hold'em Limit ($1/$2 USD) - 2005/08/26 16:12:22 ET +Table 'Teucer II' Seat #5 is the button +Seat 1: Frankson34 ($24 in chips) +Seat 2: webb22 ($64 in chips) +Seat 3: eric_mtx ($26 in chips) +Seat 4: sososolid ($147.75 in chips) +Seat 5: DRILHER ($48.25 in chips) +Seat 6: Naughtychic ($60 in chips) +Seat 7: Terps78 ($71.50 in chips) +Seat 8: ChazDazzle ($69.25 in chips) +Seat 9: alekos ($55 in chips) +Seat 10: BigNards84 ($64.25 in chips) +Naughtychic: posts small blind $0.50 +Terps78: posts big blind $1 +*** HOLE CARDS *** +Dealt to ChazDazzle [8c Kd] +ChazDazzle: folds +alekos: folds +BigNards84: raises $1 to $2 +Frankson34: folds +webb22: folds +eric_mtx: folds +ChazDazzle leaves the table +sososolid: folds +DRILHER: folds +cdhender joins the table at seat #8 +Naughtychic: folds +Terps78: folds +BigNards84 collected $2.50 from pot +BigNards84: doesn't show hand +*** SUMMARY *** +Total pot $2.50 | Rake $0 +Seat 1: Frankson34 folded before Flop (didn't bet) +Seat 2: webb22 folded before Flop (didn't bet) +Seat 3: eric_mtx folded before Flop (didn't bet) +Seat 4: sososolid folded before Flop (didn't bet) +Seat 5: DRILHER (button) folded before Flop (didn't bet) +Seat 6: Naughtychic (small blind) folded before Flop +Seat 7: Terps78 (big blind) folded before Flop +Seat 8: ChazDazzle folded before Flop (didn't bet) +Seat 9: alekos folded before Flop (didn't bet) +Seat 10: BigNards84 collected ($2.50)