From e85c99469298942cc76e671143857336f262d383 Mon Sep 17 00:00:00 2001 From: Max Metz Date: Wed, 24 Apr 2024 08:26:37 +0200 Subject: [PATCH] setting up a local mysql database and running the API locally, which requires slight adaptations. Implementing input validation for POST requests of shipcalls and adapting enumerators, as well as data models. --- src/server/BreCal/impl/shipcalls.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/server/BreCal/impl/shipcalls.py b/src/server/BreCal/impl/shipcalls.py index 8f67aa6..de60788 100644 --- a/src/server/BreCal/impl/shipcalls.py +++ b/src/server/BreCal/impl/shipcalls.py @@ -126,7 +126,6 @@ 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()")