Fix issue if pool stats have not updated yet
This commit is contained in:
parent
25fe45dd28
commit
c73939e1c5
|
@ -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