fixed a bug with not all table data getting reset on data update
This commit is contained in:
@@ -4,29 +4,17 @@ import webbrowser
|
|||||||
from miners.miner_factory import MinerFactory
|
from miners.miner_factory import MinerFactory
|
||||||
from tools.cfg_util.decorators import disable_buttons
|
from tools.cfg_util.decorators import disable_buttons
|
||||||
from tools.cfg_util.layout import TABLE_KEYS
|
from tools.cfg_util.layout import TABLE_KEYS
|
||||||
from tools.cfg_util.layout import window, update_prog_bar
|
from tools.cfg_util.layout import window, update_prog_bar, TABLE_HEADERS
|
||||||
from tools.cfg_util.tables import TableManager, DATA_HEADER_MAP
|
from tools.cfg_util.tables import TableManager, DATA_HEADER_MAP
|
||||||
|
|
||||||
progress_bar_len = 0
|
progress_bar_len = 0
|
||||||
|
|
||||||
DEFAULT_DATA = [
|
headers = []
|
||||||
"Model",
|
for key in TABLE_HEADERS.keys():
|
||||||
"Hostname",
|
for item in TABLE_HEADERS[key]:
|
||||||
"Hashrate",
|
headers.append(item)
|
||||||
"Temperature",
|
|
||||||
"Total Chips",
|
DEFAULT_DATA = set(headers)
|
||||||
"Nominal Chips",
|
|
||||||
"Left Board",
|
|
||||||
"Center Board",
|
|
||||||
"Right Board",
|
|
||||||
"Pool User",
|
|
||||||
"Pool 1",
|
|
||||||
"Pool 1 User",
|
|
||||||
"Pool 2",
|
|
||||||
"Pool 2 User",
|
|
||||||
"Wattage",
|
|
||||||
"Split",
|
|
||||||
]
|
|
||||||
|
|
||||||
|
|
||||||
def btn_all(table, selected):
|
def btn_all(table, selected):
|
||||||
|
|||||||
Reference in New Issue
Block a user