From 6890f0126b8745ddd70580c943278b947be788c6 Mon Sep 17 00:00:00 2001 From: scopesorting Date: Tue, 12 Dec 2023 17:07:09 +0100 Subject: [PATCH] partial commit of integrating the input validation (references and mandatory fields) --- src/server/BreCal/impl/shipcalls.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/server/BreCal/impl/shipcalls.py b/src/server/BreCal/impl/shipcalls.py index de60788..8f67aa6 100644 --- a/src/server/BreCal/impl/shipcalls.py +++ b/src/server/BreCal/impl/shipcalls.py @@ -126,6 +126,7 @@ def PostShipcalls(schemaModel): # if not full_id_existances: # pooledConnection.close() # return json.dumps({"message" : "call failed. missing mandatory keywords."}), 500, {'Content-Type': 'application/json; charset=utf-8'} + commands.execute(query, schemaModel) new_id = commands.execute_scalar("select last_insert_id()")