Merge branch 'master' of git://git.assembla.com/fpdboz.git
This commit is contained in:
commit
d706dea126
|
@ -98,7 +98,11 @@ class HUD_main(object):
|
||||||
self.main_window = gtk.Window()
|
self.main_window = gtk.Window()
|
||||||
self.main_window.connect("destroy", self.destroy)
|
self.main_window.connect("destroy", self.destroy)
|
||||||
self.vb = gtk.VBox()
|
self.vb = gtk.VBox()
|
||||||
self.label = gtk.Label('Closing this window will exit from the HUD.')
|
#in .exe version, closing HUD_main window causes window lockup
|
||||||
|
#until next update cycle (i.e. cannot get focus on poker window while locked)
|
||||||
|
#temporary workaround to disable close button until fix is found
|
||||||
|
self.main_window.set_deletable(False)
|
||||||
|
self.label = gtk.Label(' To close, use "Stop Autoimport" in FPDB.')
|
||||||
self.vb.add(self.label)
|
self.vb.add(self.label)
|
||||||
self.main_window.add(self.vb)
|
self.main_window.add(self.vb)
|
||||||
self.main_window.set_title("HUD Main Window")
|
self.main_window.set_title("HUD Main Window")
|
||||||
|
|
|
@ -145,6 +145,7 @@ class PokerStars(HandHistoryConverter):
|
||||||
mg = m.groupdict()
|
mg = m.groupdict()
|
||||||
# translations from captured groups to fpdb info strings
|
# translations from captured groups to fpdb info strings
|
||||||
Lim_Blinds = { '0.04': ('0.01', '0.02'), '0.10': ('0.02', '0.05'), '0.20': ('0.05', '0.10'),
|
Lim_Blinds = { '0.04': ('0.01', '0.02'), '0.10': ('0.02', '0.05'), '0.20': ('0.05', '0.10'),
|
||||||
|
'0.80': ('0.20', '0.40'),
|
||||||
'0.50': ('0.10', '0.25'), '1.00': ('0.25', '0.50'), '2.00': ('0.50', '1.00'),
|
'0.50': ('0.10', '0.25'), '1.00': ('0.25', '0.50'), '2.00': ('0.50', '1.00'),
|
||||||
'2': ('0.50', '1.00'), '4': ('1.00', '2.00'), '6': ('1.00', '3.00'),
|
'2': ('0.50', '1.00'), '4': ('1.00', '2.00'), '6': ('1.00', '3.00'),
|
||||||
'4.00': ('1.00', '2.00'), '6.00': ('1.00', '3.00'), '10.00': ('2.00', '5.00'),
|
'4.00': ('1.00', '2.00'), '6.00': ('1.00', '3.00'), '10.00': ('2.00', '5.00'),
|
||||||
|
|
|
@ -2706,25 +2706,6 @@ class Sql:
|
||||||
GROUP BY h.handStart, hp.handId, hp.sawShowdown, hp.totalProfit
|
GROUP BY h.handStart, hp.handId, hp.sawShowdown, hp.totalProfit
|
||||||
ORDER BY h.handStart"""
|
ORDER BY h.handStart"""
|
||||||
|
|
||||||
####################################
|
|
||||||
# Session stats query
|
|
||||||
####################################
|
|
||||||
if db_server == 'mysql':
|
|
||||||
self.query['sessionStats'] = """
|
|
||||||
SELECT UNIX_TIMESTAMP(h.handStart) as time, hp.handId, hp.startCash, hp.winnings, hp.totalProfit
|
|
||||||
FROM HandsPlayers hp
|
|
||||||
INNER JOIN Players pl ON (pl.id = hp.playerId)
|
|
||||||
INNER JOIN Hands h ON (h.id = hp.handId)
|
|
||||||
INNER JOIN Gametypes gt ON (gt.id = h.gametypeId)
|
|
||||||
WHERE pl.id in <player_test>
|
|
||||||
AND pl.siteId in <site_test>
|
|
||||||
AND h.handStart > '<startdate_test>'
|
|
||||||
AND h.handStart < '<enddate_test>'
|
|
||||||
<limit_test>
|
|
||||||
AND hp.tourneysPlayersId IS NULL
|
|
||||||
GROUP BY h.handStart, hp.handId, hp.totalProfit
|
|
||||||
ORDER BY h.handStart"""
|
|
||||||
|
|
||||||
####################################
|
####################################
|
||||||
# Session stats query
|
# Session stats query
|
||||||
####################################
|
####################################
|
||||||
|
@ -2738,6 +2719,7 @@ class Sql:
|
||||||
INNER JOIN Players p on (p.Id = hp.playerId)
|
INNER JOIN Players p on (p.Id = hp.playerId)
|
||||||
WHERE hp.playerId in <player_test>
|
WHERE hp.playerId in <player_test>
|
||||||
AND date_format(h.handStart, '%Y-%m-%d') <datestest>
|
AND date_format(h.handStart, '%Y-%m-%d') <datestest>
|
||||||
|
AND hp.tourneysPlayersId IS NULL
|
||||||
ORDER by time"""
|
ORDER by time"""
|
||||||
elif db_server == 'postgresql':
|
elif db_server == 'postgresql':
|
||||||
self.query['sessionStats'] = """
|
self.query['sessionStats'] = """
|
||||||
|
@ -2749,6 +2731,7 @@ class Sql:
|
||||||
INNER JOIN Players p on (p.Id = hp.playerId)
|
INNER JOIN Players p on (p.Id = hp.playerId)
|
||||||
WHERE hp.playerId in <player_test>
|
WHERE hp.playerId in <player_test>
|
||||||
AND h.handStart <datestest>
|
AND h.handStart <datestest>
|
||||||
|
AND hp.tourneysPlayersId IS NULL
|
||||||
ORDER by time"""
|
ORDER by time"""
|
||||||
elif db_server == 'sqlite':
|
elif db_server == 'sqlite':
|
||||||
self.query['sessionStats'] = """
|
self.query['sessionStats'] = """
|
||||||
|
@ -2760,6 +2743,7 @@ class Sql:
|
||||||
INNER JOIN Players p on (p.Id = hp.playerId)
|
INNER JOIN Players p on (p.Id = hp.playerId)
|
||||||
WHERE hp.playerId in <player_test>
|
WHERE hp.playerId in <player_test>
|
||||||
AND h.handStart <datestest>
|
AND h.handStart <datestest>
|
||||||
|
AND hp.tourneysPlayersId IS NULL
|
||||||
ORDER by time"""
|
ORDER by time"""
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user