From 83e4a10bbc000d7610fe6780ea43318afb5d2f58 Mon Sep 17 00:00:00 2001 From: mcbloch Date: Fri, 5 Apr 2019 18:24:24 +0200 Subject: [PATCH] fix big ass close order issue #107 --- app/views/order.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/order.py b/app/views/order.py index d007d09..28fcfbc 100644 --- a/app/views/order.py +++ b/app/views/order.py @@ -170,7 +170,7 @@ def close_order(id): if order is None: abort(404) if (current_user.id == order.courrier_id or current_user.is_admin()) \ - and order.stoptime is None or (order.stoptime > datetime.now()): + and (order.stoptime is None or (order.stoptime > datetime.now())): order.stoptime = datetime.now() if order.courrier_id == 0 or order.courrier_id is None: courrier = select_user(order.items)