Fix issue if pool stats have not updated yet
This commit is contained in:
parent
02138974fa
commit
46896c593e
|
@ -544,7 +544,7 @@ def get_list_pool(zkhandler, limit, is_fuzzy=True):
|
|||
for future in futures:
|
||||
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)))
|
||||
|
||||
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue