Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,8 @@ async def get_leaderboard_data():
|
|
27 |
com_price = get_com_price()
|
28 |
blocks_in_day = 10_800
|
29 |
client = CommuneClient(node_url)
|
30 |
-
emission =
|
|
|
31 |
scores = {}
|
32 |
for uid, emi in enumerate(emission):
|
33 |
scores[uid] = ((emi / 10**11) * blocks_in_day) * com_price
|
|
|
27 |
com_price = get_com_price()
|
28 |
blocks_in_day = 10_800
|
29 |
client = CommuneClient(node_url)
|
30 |
+
emission = client.query("Emission", params=[netuid])
|
31 |
+
print("got tha emission")
|
32 |
scores = {}
|
33 |
for uid, emi in enumerate(emission):
|
34 |
scores[uid] = ((emi / 10**11) * blocks_in_day) * com_price
|