fixed bug in ship create

This commit is contained in:
Daniel Schick 2024-09-23 08:39:25 +02:00
parent 27179da2a2
commit 7921a138d4

View File

@ -97,7 +97,7 @@ class InputValidationShip():
ships = json.loads(response)
# extract only the 'imo' values
ship_imos = [ship.get("imo") for ship in ships if not ship.deleted]
ship_imos = [ship.get("imo") for ship in ships if not ship.get("deleted")]
# check, if the imo in the POST-request already exists in the list
imo_already_exists = loadedModel.get("imo") in ship_imos