diff --git a/pyfpdb/HUD_main.pyw b/pyfpdb/HUD_main.pyw index 92f888d8..c31c87d1 100755 --- a/pyfpdb/HUD_main.pyw +++ b/pyfpdb/HUD_main.pyw @@ -98,7 +98,11 @@ class HUD_main(object): self.main_window = gtk.Window() self.main_window.connect("destroy", self.destroy) 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.main_window.add(self.vb) self.main_window.set_title("HUD Main Window") diff --git a/pyfpdb/PokerStarsToFpdb.py b/pyfpdb/PokerStarsToFpdb.py index 17a9b15c..89071ae7 100644 --- a/pyfpdb/PokerStarsToFpdb.py +++ b/pyfpdb/PokerStarsToFpdb.py @@ -145,6 +145,7 @@ class PokerStars(HandHistoryConverter): mg = m.groupdict() # 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'), + '0.80': ('0.20', '0.40'), '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'), '4.00': ('1.00', '2.00'), '6.00': ('1.00', '3.00'), '10.00': ('2.00', '5.00'), diff --git a/pyfpdb/SQL.py b/pyfpdb/SQL.py index 94d7a21e..de60105b 100644 --- a/pyfpdb/SQL.py +++ b/pyfpdb/SQL.py @@ -2706,25 +2706,6 @@ class Sql: GROUP BY h.handStart, hp.handId, hp.sawShowdown, hp.totalProfit 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 - AND pl.siteId in - AND h.handStart > '' - AND h.handStart < '' - - AND hp.tourneysPlayersId IS NULL - GROUP BY h.handStart, hp.handId, hp.totalProfit - ORDER BY h.handStart""" - #################################### # Session stats query #################################### @@ -2738,6 +2719,7 @@ class Sql: INNER JOIN Players p on (p.Id = hp.playerId) WHERE hp.playerId in AND date_format(h.handStart, '%Y-%m-%d') + AND hp.tourneysPlayersId IS NULL ORDER by time""" elif db_server == 'postgresql': self.query['sessionStats'] = """ @@ -2749,6 +2731,7 @@ class Sql: INNER JOIN Players p on (p.Id = hp.playerId) WHERE hp.playerId in AND h.handStart + AND hp.tourneysPlayersId IS NULL ORDER by time""" elif db_server == 'sqlite': self.query['sessionStats'] = """ @@ -2760,6 +2743,7 @@ class Sql: INNER JOIN Players p on (p.Id = hp.playerId) WHERE hp.playerId in AND h.handStart + AND hp.tourneysPlayersId IS NULL ORDER by time"""