mirror of
https://github.com/autistic-symposium/blockchain-data-engineering-toolkit.git
synced 2025-05-07 17:25:05 -04:00
💾
This commit is contained in:
parent
643531f284
commit
36fd489383
2 changed files with 2 additions and 1 deletions
|
@ -44,7 +44,7 @@ async def retrieve_top_balances(top_number: int, env_vars: dict) -> list:
|
|||
"""Retrieve top balances from the database."""
|
||||
|
||||
collection = _get_db_collection(env_vars)
|
||||
top_balances = collection.find().sort({"balance": {"$lt": top_number}}, pymongo.DESCENDING)
|
||||
top_balances = collection.find().sort({"balance"}, pymongo.DESCENDING).limit(top_number)
|
||||
|
||||
result = []
|
||||
counter = 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue