Update prize pool using database query

This commit is contained in:
ekzyis 2024-02-11 15:12:38 +01:00
parent 79023f2acb
commit aae841b21b
1 changed files with 4 additions and 4 deletions

View File

@ -15,10 +15,10 @@ x================================+
```
""")
# run this to sum sats:
# SELECT SUM(msats) / 1000 FROM "Item" WHERE ("userId" = 19494) or id = 342259;
# last updated: 2024-02-11
legend_of_snail_stacked = 119603 # from database [sats]
oracle_stacked = 17711 # from profile [sats]
prize_pool = legend_of_snail_stacked + oracle_stacked
prize_pool = 136393.86
invoices_path = "invoices.json"
invoices = load_invoices(invoices_path)
@ -28,7 +28,7 @@ participants = populate_eliminated(participants)
print(f"Date: {TODAY.strftime('%Y-%m-%d')}\n")
print(f"Number of participants: {len(participants)}\n")
print(f"Prize Pool: `{prize_pool} sats`\n")
print(f"Prize Pool: `{round(prize_pool)} sats`\n")
# add bets to prize pool
for p in participants: