From cd12c8e26b6713bf174076dc288b610f890a0588 Mon Sep 17 00:00:00 2001 From: Thomas Vanbesien Date: Wed, 18 Mar 2026 16:36:14 +0100 Subject: Remove note field from weight logging --- screens/weight.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'screens/weight.py') diff --git a/screens/weight.py b/screens/weight.py index 5669f07..f5bb216 100644 --- a/screens/weight.py +++ b/screens/weight.py @@ -10,8 +10,7 @@ def log_weight(conn: sqlite3.Connection) -> None: date_time = ui.prompt_datetime("Date/Time") weight = ui.prompt_float("Weight (kg): ", min_val=0.1) assert weight is not None - note = ui.prompt_str("Note (optional): ", required=False) - models.add_weight_log(conn, date_time, weight, note) + models.add_weight_log(conn, date_time, weight) print(f"Logged {weight:.1f}kg.") ui.pause() @@ -49,11 +48,10 @@ def view_weight_logs(conn: sqlite3.Connection) -> None: log["date_time"], f"{weight:.1f}", diff, - log["note"] or "", ] ) - ui.print_table(["#", "Date", "Weight (kg)", "Diff", "Note"], rows) + ui.print_table(["#", "Date", "Weight (kg)", "Diff"], rows) choice = input("\nSelect # to delete ('b' = back): ").strip() if choice.lower() == "b": -- cgit v1.2.3