remove redundant db variable
This commit is contained in:
parent
79b3dba2dd
commit
5111eb1a8f
|
@ -27,7 +27,7 @@ import Filters
|
|||
import FpdbSQLQueries
|
||||
|
||||
class GuiPlayerStats (threading.Thread):
|
||||
def __init__(self, db, config, querylist, debug=True):
|
||||
def __init__(self, config, querylist, debug=True):
|
||||
self.debug=debug
|
||||
self.conf=config
|
||||
|
||||
|
@ -52,7 +52,7 @@ class GuiPlayerStats (threading.Thread):
|
|||
"Button2" : False
|
||||
}
|
||||
|
||||
self.filters = Filters.Filters(db, settings, config, querylist, display = filters_display)
|
||||
self.filters = Filters.Filters(self.db, settings, config, querylist, display = filters_display)
|
||||
|
||||
self.stat_table = None
|
||||
self.stats_frame = None
|
||||
|
|
|
@ -331,7 +331,7 @@ class fpdb:
|
|||
#end def tab_bulk_import
|
||||
|
||||
def tab_player_stats(self, widget, data):
|
||||
new_ps_thread=GuiPlayerStats.GuiPlayerStats(self.db, self.config, self.querydict)
|
||||
new_ps_thread=GuiPlayerStats.GuiPlayerStats(self.config, self.querydict)
|
||||
self.threads.append(new_ps_thread)
|
||||
ps_tab=new_ps_thread.get_vbox()
|
||||
self.add_and_display_tab(ps_tab, "Player Stats")
|
||||
|
|
Loading…
Reference in New Issue
Block a user