fpdb_parse_logic: use 'in' instead of 'find'
This commit is contained in:
parent
0cd97db548
commit
0fd6c4a9b2
|
@ -41,7 +41,7 @@ def mainParser(backend, db, cursor, site, category, hand):
|
||||||
isTourney=fpdb_simple.isTourney(hand[0])
|
isTourney=fpdb_simple.isTourney(hand[0])
|
||||||
smallBlindLine=0
|
smallBlindLine=0
|
||||||
for i in range(len(hand)):
|
for i in range(len(hand)):
|
||||||
if hand[i].find("posts small blind")!=-1 or hand[i].find("posts the small blind")!=-1:
|
if 'posts small blind' in hand[i] or 'posts the small blind' in hand[i]:
|
||||||
if hand[i][-2:] == "$0":
|
if hand[i][-2:] == "$0":
|
||||||
continue
|
continue
|
||||||
smallBlindLine=i
|
smallBlindLine=i
|
||||||
|
|
Loading…
Reference in New Issue
Block a user