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 = [