Skip to content
Snippets Groups Projects
Commit 19b1c84f authored by Fabian Heinrich's avatar Fabian Heinrich
Browse files

If order has no time limit: duration=1 year, max-now was too much

parent bdad6653
No related branches found
No related tags found
No related merge requests found
Pipeline #49217 passed
......@@ -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(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment