From 361430e9afe902afe8c7d2a788ce4248ff6b1861 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Thu, 2 May 2024 22:09:20 -0700 Subject: [PATCH] add graham cracker label --- src/ptouch_web/dashapp.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/ptouch_web/dashapp.py b/src/ptouch_web/dashapp.py index 0683563..4c908c4 100644 --- a/src/ptouch_web/dashapp.py +++ b/src/ptouch_web/dashapp.py @@ -127,11 +127,17 @@ def puree_template(): return f"\nPurée\nuse {tomorrow.strftime('%b %d')}" +def cracker_template(): + tomorrow = datetime.now() + timedelta(days=1) + return f"Graham\nCracker\nuse {tomorrow.strftime('%b %d')}" + + templates = { "bottle": {"label": "Bottle", "function": bottle_template}, "rayleigh": {"label": "Rayleigh", "value": "Rayleigh\nArmstrong-Dodgen"}, "kepler": {"label": "Kepler", "value": "Kepler\nArmstrong-Dodgen"}, "puree": {"label": "Purée", "function": puree_template}, + "cracker": {"label": "Cracker", "function": cracker_template}, } for name, template in templates.items(): -- 2.39.5