fixed a bug with the total miner count not showing when getting data and scanning together
This commit is contained in:
@@ -144,7 +144,7 @@ async def scan_and_get_data(network):
|
|||||||
async for miner in miner_generator:
|
async for miner in miner_generator:
|
||||||
if miner:
|
if miner:
|
||||||
miners.append(miner)
|
miners.append(miner)
|
||||||
# can output "Identifying" for each found item, but it gets a bit cluttereds
|
# can output "Identifying" for each found item, but it gets a bit cluttered
|
||||||
# and could possibly be confusing for the end user because of timing on
|
# and could possibly be confusing for the end user because of timing on
|
||||||
# adding the IPs
|
# adding the IPs
|
||||||
# window["ip_table"].update([["Identifying...", "", "", "", ""] for miner in miners])
|
# window["ip_table"].update([["Identifying...", "", "", "", ""] for miner in miners])
|
||||||
@@ -160,6 +160,7 @@ async def scan_and_get_data(network):
|
|||||||
window["ip_table"].update([[str(miner.ip), "", "", "", ""] for miner in all_miners])
|
window["ip_table"].update([[str(miner.ip), "", "", "", ""] for miner in all_miners])
|
||||||
progress_bar_len += 1
|
progress_bar_len += 1
|
||||||
asyncio.create_task(update_prog_bar(progress_bar_len))
|
asyncio.create_task(update_prog_bar(progress_bar_len))
|
||||||
|
await update_ui_with_data("ip_count", str(len(all_miners)))
|
||||||
data_gen = asyncio.as_completed([get_formatted_data(miner) for miner in miners])
|
data_gen = asyncio.as_completed([get_formatted_data(miner) for miner in miners])
|
||||||
ip_table_data = window["ip_table"].Values
|
ip_table_data = window["ip_table"].Values
|
||||||
ordered_all_ips = [item[0] for item in ip_table_data]
|
ordered_all_ips = [item[0] for item in ip_table_data]
|
||||||
|
|||||||
@@ -7,7 +7,6 @@ import pyperclip
|
|||||||
|
|
||||||
|
|
||||||
def copy_from_table(table):
|
def copy_from_table(table):
|
||||||
print("copy")
|
|
||||||
selection = table.selection()
|
selection = table.selection()
|
||||||
copy_values = []
|
copy_values = []
|
||||||
for each in selection:
|
for each in selection:
|
||||||
|
|||||||
Reference in New Issue
Block a user