improve handling of hud_style options

This commit is contained in:
sqlcoder
2009-07-18 18:29:06 +01:00
parent 8386dd594e
commit cdd94d512f
2 changed files with 27 additions and 7 deletions
+5
View File
@@ -571,6 +571,11 @@ class Sql:
from Hands
where handStart < now() at time zone 'UTC' - interval '1 day'"""
#if db_server == 'mysql':
self.query['get_hand_nhands_ago'] = """
select coalesce(greatest(max(id),%s)-%s,0)
from Hands"""
if __name__== "__main__":
# just print the default queries and exit
s = Sql(game = 'razz', type = 'ptracks')