diff --git a/cooperative_cuisine/orders.py b/cooperative_cuisine/orders.py index 58db96b624eacf9b52a52bc36eb6bc6cdb998b7a..910c44b016bc7a048d8874e2e78cb41970912eb1 100644 --- a/cooperative_cuisine/orders.py +++ b/cooperative_cuisine/orders.py @@ -473,7 +473,7 @@ class RandomOrderGeneration(OrderGeneration): orders = [] for meal in meals: if no_time_limit: - duration = datetime.max - now + duration = timedelta(days=365) else: if isinstance(self.kwargs.order_duration_random_func["func"], str): seconds = getattr(