corrected parsing

This commit is contained in:
ytemiloluwa
2024-09-02 09:27:30 +01:00
parent a71aa6868a
commit 792e1c9cad

View File

@@ -318,8 +318,7 @@ class MaraMiner(MaraFirmware):
pools_data = []
if web_pools is not None:
try:
pools = web_pools.get("POOLS", [])
for pool_info in pools:
for pool_info in web_pools:
url = pool_info.get("URL")
pool_url = PoolUrl.from_str(url) if url else None
pool_data = PoolMetrics(