p106 - fixed small blind reading
This commit is contained in:
parent
6926306147
commit
ce3187667c
|
@ -18,8 +18,8 @@
|
|||
import os
|
||||
import sys
|
||||
|
||||
errorfile = open('fpdb-error.log', 'w')
|
||||
sys.stderr = errorfile
|
||||
#errorfile = open('fpdb-error.log', 'w')
|
||||
#sys.stderr = errorfile
|
||||
|
||||
import pygtk
|
||||
pygtk.require('2.0')
|
||||
|
|
|
@ -1042,11 +1042,14 @@ def recogniseGametypeID(cursor, topline, smallBlindLine, site_id, category, isTo
|
|||
|
||||
if (limit_type=="fl"):
|
||||
big_blind=small_bet
|
||||
if base=="hold":
|
||||
if smallBlindLine==topline:
|
||||
raise fpdb_simple.FpdbError("invalid small blind line")
|
||||
raise FpdbError("invalid small blind line")
|
||||
else:
|
||||
pos=smallBlindLine.rfind("$")+1
|
||||
small_blind=float2int(smallBlindLine[pos:])
|
||||
else:
|
||||
small_blind=0
|
||||
cursor.execute("""INSERT INTO Gametypes
|
||||
(siteId, type, base, category, limitType, hiLo, smallBlind, bigBlind, smallBet, bigBet)
|
||||
VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)""", (site_id, type, base, category, limit_type, hiLo, small_blind, big_blind, small_bet, big_bet))
|
||||
|
|
Loading…
Reference in New Issue
Block a user