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