diff --git a/pyfpdb/Database.py b/pyfpdb/Database.py index f4de8169..de71da0c 100755 --- a/pyfpdb/Database.py +++ b/pyfpdb/Database.py @@ -181,7 +181,7 @@ class Database: # create index indexname on tablename (col); - def __init__(self, c, db_name = None, game = None, sql = None): # db_name and game not used any more + def __init__(self, c, sql = None): log.info("Creating Database instance, sql = %s" % sql) self.fdb = fpdb_db.fpdb_db() # sets self.fdb.db self.fdb.cursor and self.fdb.sql self.fdb.do_connect(c) diff --git a/pyfpdb/HUD_main.py b/pyfpdb/HUD_main.py index ecc96429..b1164b26 100755 --- a/pyfpdb/HUD_main.py +++ b/pyfpdb/HUD_main.py @@ -160,7 +160,7 @@ class HUD_main(object): # be passed to HUDs for use in the gui thread. HUD objects should not # need their own access to the database, but should open their own # if it is required. - self.db_connection = Database.Database(self.config, self.db_name, 'temp') + self.db_connection = Database.Database(self.config) self.db_connection.init_hud_stat_vars(hud_days) tourny_finder = re.compile('(\d+) (\d+)')