mirror of
https://github.com/autistic-symposium/blockchain-data-engineering-toolkit.git
synced 2025-04-25 10:19:13 -04:00
💾
This commit is contained in:
parent
643531f284
commit
36fd489383
@ -33,3 +33,4 @@
|
||||
<br>
|
||||
|
||||
* **[go-outside-labs orchestration-toolkit](https://github.com/go-outside-labs/orchestration-toolkit)**
|
||||
* **[google biquery article on blockchain public datasets](https://cloud.google.com/blog/products/data-analytics/introducing-six-new-cryptocurrencies-in-bigquery-public-datasets-and-how-to-analyze-them)**
|
||||
|
@ -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…
x
Reference in New Issue
Block a user