From aae841b21bc76b3f0c18f86ec69ce1daa6e84f85 Mon Sep 17 00:00:00 2001 From: ekzyis Date: Sun, 11 Feb 2024 15:12:38 +0100 Subject: [PATCH] Update prize pool using database query --- src/main.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.py b/src/main.py index 6b5ef47..344eab0 100644 --- a/src/main.py +++ b/src/main.py @@ -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: