more tourney work

- moved HH-based tourney handling completely into Hand
- renamed Tourney.py to TourneySummaries
- changed many DB fields to allow NULL and removed defaults
This commit is contained in:
steffen123
2010-07-07 04:01:40 +02:00
parent 18faa5288c
commit eb3233ac98
6 changed files with 96 additions and 94 deletions
+2 -2
View File
@@ -256,8 +256,8 @@ class PokerStars(HandHistoryConverter):
hand.buyinCurrency="NA" #FIXME: handle other currencies, FPP, play money
info[key]=info[key][:-4]
middle=info[key].find("+")
hand.buyin = 100*Decimal(info[key][1:middle])
hand.fee = 100*Decimal(info[key][middle+2:])
hand.buyin = int(100*Decimal(info[key][1:middle]))
hand.fee = int(100*Decimal(info[key][middle+2:]))
if key == 'LEVEL':
hand.level = info[key]