From 3e63b9ce46d1265c514e291ab079efef0f155328 Mon Sep 17 00:00:00 2001 From: Daniel Schick Date: Thu, 26 Oct 2023 16:21:26 +0200 Subject: [PATCH] added missing paranthesis --- src/server/BreCal/impl/shipcalls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/BreCal/impl/shipcalls.py b/src/server/BreCal/impl/shipcalls.py index 4bde755..1e29dec 100644 --- a/src/server/BreCal/impl/shipcalls.py +++ b/src/server/BreCal/impl/shipcalls.py @@ -22,7 +22,7 @@ def GetShipcalls(options): query = ("SELECT id, ship_id, type, eta, voyage, etd, arrival_berth_id, departure_berth_id, tug_required, pilot_required, " "flags, pier_side, bunkering, replenishing_terminal, replenishing_lock, draft, tidal_window_from, tidal_window_to, rain_sensitive_cargo, recommended_tugs, " "anchored, moored_lock, canceled, evaluation, evaluation_message, created, modified FROM shipcall WHERE ((type = 1 OR type = 2) AND eta >= DATE(NOW() - INTERVAL %d DAY)" - "OR (type = 3 AND etd >= DATE(NOW() - INTERVAL %d DAY)) " + "OR (type = 3 AND etd >= DATE(NOW() - INTERVAL %d DAY))) " "ORDER BY eta") % (options["past_days"], options["past_days"]) data = commands.query(query, model=model.Shipcall)