From 39859970d7699476d9eaac4fcad8e736bfa561b4 Mon Sep 17 00:00:00 2001 From: steffen123 Date: Mon, 5 Jul 2010 01:29:05 +0200 Subject: [PATCH] another repair as a result of removing payinAmounts --- pyfpdb/Database.py | 1 - pyfpdb/FulltiltToFpdb.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/pyfpdb/Database.py b/pyfpdb/Database.py index dcda2d27..6ab5794a 100644 --- a/pyfpdb/Database.py +++ b/pyfpdb/Database.py @@ -2032,7 +2032,6 @@ class HandToWrite: self.maxSeats = None self.tableName = None self.seatNos = None - self.payin_amounts = None # tourney import was complaining mightily about this missing except: print "htw.init error: " + str(sys.exc_info()) raise diff --git a/pyfpdb/FulltiltToFpdb.py b/pyfpdb/FulltiltToFpdb.py index a7d27d8a..f971b06c 100755 --- a/pyfpdb/FulltiltToFpdb.py +++ b/pyfpdb/FulltiltToFpdb.py @@ -626,7 +626,7 @@ class Fulltilt(HandHistoryConverter): # Calculate payin amounts and update winnings -- not possible to take into account nb of rebuys, addons or Knockouts for other players than hero on FTP for p in tourney.players : - tourney.payinAmounts[p] = tourney.buyin + tourney.fee + (tourney.rebuyCost * tourney.rebuyCounts[p]) + (tourney.addOnCost * tourney.addOnCounts[p]) + #tourney.payinAmounts[p] = tourney.buyin + tourney.fee + (tourney.rebuyCost * tourney.rebuyCounts[p]) + (tourney.addOnCost * tourney.addOnCounts[p]) #print " player %s : payinAmount = %d" %( p, tourney.payinAmounts[p]) if tourney.isKO : #tourney.incrementPlayerWinnings(tourney.players[p], Decimal(tourney.koBounty)*Decimal(tourney.koCounts[p]))