From 23d73c5675b53039d61fd29ec9994f9b59ee8cd0 Mon Sep 17 00:00:00 2001 From: Worros Date: Sun, 5 Sep 2010 22:08:27 +0800 Subject: [PATCH] PSSummary.py: Fix winnings for Step tickets --- pyfpdb/PokerStarsSummary.py | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/pyfpdb/PokerStarsSummary.py b/pyfpdb/PokerStarsSummary.py index b0729baf..87505f00 100644 --- a/pyfpdb/PokerStarsSummary.py +++ b/pyfpdb/PokerStarsSummary.py @@ -249,14 +249,16 @@ class PokerStarsSummary(TourneySummary): winnings=None if 'TICKET' and mg['TICKET'] != None: - print "DEBUG: TODO! fix Step ticket values" - print "\tWinning = Level %s" % mg['LEVEL'] - # Step 1 - $7.50 USD - # Step 2 - $27.00 USD - # Step 3 - $82.00 USD - # Step 4 - $215.00 USD - # Step 5 - $700.00 USD - # Step 6 - $2100.00 USD + #print "Tournament Ticket Level %s" % mg['LEVEL'] + step_values = { + '1' : '750', # Step 1 - $7.50 USD + '2' : '2750', # Step 2 - $27.00 USD + '3' : '8200', # Step 3 - $82.00 USD + '4' : '21500', # Step 4 - $215.00 USD + '5' : '70000', # Step 5 - $700.00 USD + '6' : '210000', # Step 6 - $2100.00 USD + } + winnings = step_values[mg['LEVEL']] #TODO: currency, ko/addon/rebuy count -> need examples! #print "DEBUG: addPlayer(%s, %s, %s, %s, None, None, None)" %(rank, name, winnings, self.currency)