Fix Playerstats for Pot Limit
Still broken for cap games. Need a more flexible mechanism for this
This commit is contained in:
		
							parent
							
								
									8d2b315fc8
								
							
						
					
					
						commit
						14ccde73a2
					
				|  | @ -480,6 +480,7 @@ class GuiPlayerStats (threading.Thread): | ||||||
|             query = query.replace('<orderbyseats>', '') |             query = query.replace('<orderbyseats>', '') | ||||||
| 
 | 
 | ||||||
|         lims = [int(x) for x in limits if x.isdigit()] |         lims = [int(x) for x in limits if x.isdigit()] | ||||||
|  |         potlims = [int(x[0:-2]) for x in limits if len(x) > 2 and x[-2:] == 'pl'] | ||||||
|         nolims = [int(x[0:-2]) for x in limits if len(x) > 2 and x[-2:] == 'nl'] |         nolims = [int(x[0:-2]) for x in limits if len(x) > 2 and x[-2:] == 'nl'] | ||||||
|         bbtest = "and ( (gt.limitType = 'fl' and gt.bigBlind in " |         bbtest = "and ( (gt.limitType = 'fl' and gt.bigBlind in " | ||||||
|                  # and ( (limit and bb in()) or (nolimit and bb in ()) ) |                  # and ( (limit and bb in()) or (nolimit and bb in ()) ) | ||||||
|  | @ -490,6 +491,14 @@ class GuiPlayerStats (threading.Thread): | ||||||
|             bbtest = bbtest + blindtest + ' ) ' |             bbtest = bbtest + blindtest + ' ) ' | ||||||
|         else: |         else: | ||||||
|             bbtest = bbtest + '(-1) ) ' |             bbtest = bbtest + '(-1) ) ' | ||||||
|  |         bbtest = bbtest + " or (gt.limitType = 'pl' and gt.bigBlind in " | ||||||
|  |         if potlims: | ||||||
|  |             blindtest = str(tuple(potlims)) | ||||||
|  |             blindtest = blindtest.replace("L", "") | ||||||
|  |             blindtest = blindtest.replace(",)",")") | ||||||
|  |             bbtest = bbtest + blindtest + ' ) ' | ||||||
|  |         else: | ||||||
|  |             bbtest = bbtest + '(-1) ) ' | ||||||
|         bbtest = bbtest + " or (gt.limitType = 'nl' and gt.bigBlind in " |         bbtest = bbtest + " or (gt.limitType = 'nl' and gt.bigBlind in " | ||||||
|         if nolims: |         if nolims: | ||||||
|             blindtest = str(tuple(nolims)) |             blindtest = str(tuple(nolims)) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user