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:
		
							parent
							
								
									b0616a7d2c
								
							
						
					
					
						commit
						4374b6c810
					
				|  | @ -181,7 +181,7 @@ class Database: | ||||||
|     # create index indexname on tablename (col); |     # 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) |         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 = fpdb_db.fpdb_db()   # sets self.fdb.db self.fdb.cursor and self.fdb.sql | ||||||
|         self.fdb.do_connect(c) |         self.fdb.do_connect(c) | ||||||
|  |  | ||||||
|  | @ -160,7 +160,7 @@ class HUD_main(object): | ||||||
| #    be passed to HUDs for use in the gui thread. HUD objects should not | #    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 | #    need their own access to the database, but should open their own | ||||||
| #    if it is required. | #    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) |         self.db_connection.init_hud_stat_vars(hud_days) | ||||||
|         tourny_finder = re.compile('(\d+) (\d+)') |         tourny_finder = re.compile('(\d+) (\d+)') | ||||||
|      |      | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user