From 36568075fe24f03df08a10d4fb7edb70d8355a10 Mon Sep 17 00:00:00 2001 From: Worros Date: Sat, 21 Feb 2009 20:24:11 +0900 Subject: [PATCH] Add output line for main import code Main import should probably read summary, meh --- pyfpdb/Hand.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pyfpdb/Hand.py b/pyfpdb/Hand.py index b902dd67..1bc222e3 100644 --- a/pyfpdb/Hand.py +++ b/pyfpdb/Hand.py @@ -424,6 +424,15 @@ Map the tuple self.gametype onto the pokerstars string describing it print >>fh, _("*** SHOW DOWN ***") print >>fh, "DEBUG: what do they show" + # Current PS format has the lines: + # s0rrow collected $5.15 from side pot + # stervels: shows [Ks Qs] (two pair, Kings and Queens) + # stervels collected $45.35 from main pot + # Immediately before the summary. + # The current importer uses those lines for importing winning rather than the summary + for name in self.collected: + print >>fh, _("%s collected $%s from x pot" %(name, self.collected[name])) + print >>fh, _("*** SUMMARY ***") print >>fh, "%s | Rake $%.2f" % (self.pot, self.rake) #print >>fh, _("Total pot $%s | Rake $%.2f" % (self.totalpot, self.rake)) # TODO: side pots