From 29bb50fe6d45f64ec66a243c7ea8dcc1a927aad3 Mon Sep 17 00:00:00 2001 From: Niklas Meinzer Date: Wed, 29 Apr 2026 11:44:12 +0200 Subject: [PATCH] Adjust prices --- src/meal_manager/grist.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/meal_manager/grist.py b/src/meal_manager/grist.py index 2e3a262..f19e464 100644 --- a/src/meal_manager/grist.py +++ b/src/meal_manager/grist.py @@ -6,6 +6,9 @@ from dotenv import load_dotenv load_dotenv() from pygrister.api import GristApi +PRICE_REGULAR = 3 +PRICE_KIDS = 1.5 + config = { "GRIST_API_SERVER": "allmende-gufi.de", "GRIST_TEAM_SITE": "grist", @@ -41,7 +44,7 @@ def sync_with_grist(event) -> int: "Datum": event.event_time.date().isoformat(), "Typ": "Essen", "Partei_Konto": registration.household.name, - "Betrag": -3.5 * registration.num_adult_meals, + "Betrag": -1 * PRICE_REGULAR * registration.num_adult_meals, "Date_Added": today, "meal_manager_event_id": event.id, } @@ -52,7 +55,7 @@ def sync_with_grist(event) -> int: "Datum": event.event_time.date().isoformat(), "Typ": "Essen Kind", "Partei_Konto": registration.household.name, - "Betrag": -2 * registration.num_children_meals, + "Betrag": -1 * PRICE_KIDS * registration.num_children_meals, "Date_Added": today, "meal_manager_event_id": event.id, }