From 9c69005f7ce6fcc8cdb93c37537bdffa51a4b795 Mon Sep 17 00:00:00 2001 From: Peter Stockings Date: Thu, 7 Dec 2023 20:58:03 +1100 Subject: [PATCH] Add weight and reps to popover --- db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db.py b/db.py index 0830861..e189e3c 100644 --- a/db.py +++ b/db.py @@ -490,6 +490,6 @@ class DataBase(): # Get a list of all start_dates start_dates = [t['start_date'] for t in topsets] # Create a list of messages with the structure 'estimated_1rm kg on start_date' with start_date formatted as 'dd/mm/yyyy' - messages = [f'{t["estimated_1rm"]}kg on {t["start_date"].strftime("%d/%m/%Y")}' for t in topsets] + messages = [f'{t["repetitions"]} x {t["weight"]}kg ({t["estimated_1rm"]}kg E1RM) on {t["start_date"].strftime("%d/%m/%Y")}' for t in topsets] return (estimated_1rm, start_dates, messages) \ No newline at end of file