Fixed problem with unreliable fav_seat placement.
Eliminated special query to get actual seat by incorporating in to stat_dict query. Provided for graceful skipping of hands when there is an error in a query in the read_stdin() thread. Left intermediate prints for use of others.
This commit is contained in:
@@ -173,6 +173,8 @@ class Sql:
|
||||
|
||||
self.query['get_stats_from_hand'] = """
|
||||
SELECT HudCache.playerId AS player_id,
|
||||
seatNo AS seat,
|
||||
name AS screen_name,
|
||||
sum(HDs) AS n,
|
||||
sum(street0VPI) AS vpip,
|
||||
sum(street0Aggr) AS pfr,
|
||||
@@ -233,6 +235,7 @@ class Sql:
|
||||
INNER JOIN HandsPlayers ON (HandsPlayers.handId = %s)
|
||||
INNER JOIN HudCache ON ( HudCache.PlayerId = HandsPlayers.PlayerId+0
|
||||
AND HudCache.gametypeId+0 = Hands.gametypeId+0)
|
||||
INNER JOIN Players ON (Players.id = HandsPlayers.PlayerId+0)
|
||||
WHERE Hands.id = %s
|
||||
GROUP BY HudCache.PlayerId
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user