diff --git a/container/server/container-compose.yml b/container/server/container-compose.yml index 75d14c68..a0a0ea7f 100644 --- a/container/server/container-compose.yml +++ b/container/server/container-compose.yml @@ -41,7 +41,7 @@ services: environment: SQLALCHEMY_DATABASE_URI: "postgresql://postgres:postgres@quads_db:5432/quads" volumes: - - /var/lib/jenkins/workspace/Quads-2.1:/opt/quads:z + - /var/lib/jenkins/workspace/QUADS-2.1-Latest:/opt/quads:z networks: podman: ipv4_address: 10.88.0.11 diff --git a/src/quads/server/blueprints/interfaces.py b/src/quads/server/blueprints/interfaces.py index 49f3f8c6..06e59e06 100644 --- a/src/quads/server/blueprints/interfaces.py +++ b/src/quads/server/blueprints/interfaces.py @@ -69,7 +69,7 @@ def create_interface(hostname: str) -> Response: return make_response(jsonify(response), 400) speed = data.get("speed") - if speed and not speed > 0: + if int(speed) and not int(speed) > 0: response = { "status_code": 400, "error": "Bad Request",