remove Database:__init__ parameters for db_name and game, as there was a comment right next to them # db_name and game not used anymore

This commit is contained in:
Eric Blade 2009-09-15 18:49:34 -05:00
parent b0616a7d2c
commit 4374b6c810
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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+)')