Fix issue if pool stats have not updated yet

This commit is contained in:
Joshua Boniface 2021-12-28 21:03:10 -05:00
parent 25fe45dd28
commit c73939e1c5
1 changed files with 1 additions and 1 deletions

View File

@ -544,7 +544,7 @@ def get_list_pool(zkhandler, limit, is_fuzzy=True):
for future in futures: for future in futures:
pool_data_list.append(future.result()) pool_data_list.append(future.result())
return True, sorted(pool_data_list, key=lambda x: int(x["stats"]["id"])) return True, sorted(pool_data_list, key=lambda x: int(x["stats"].get("id", 0)))
# #