From 26c0f1da8e41b08967c040ae155649769cb498b1 Mon Sep 17 00:00:00 2001 From: Hubert Van De Walle Date: Tue, 21 Apr 2026 23:43:04 +0200 Subject: [PATCH] Don't overwrite dispatch --- src/main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.py b/src/main.py index 9ead421..d35be31 100644 --- a/src/main.py +++ b/src/main.py @@ -22,6 +22,10 @@ def cli() -> None: def dispatch(): """Randomly distribute unassigned tasks among team members.""" + if DispatchStorage.load(): + print("[red]Tickets were already dispatched.[/red]") + return + client = odoo_client.OdooClient() today = datetime.now().strftime("%Y-%m-%d") domain = [