From dec12c1942293cf09ec54ec4f9986f9b1fa90f1e Mon Sep 17 00:00:00 2001 From: GabrielBarberini Date: Wed, 9 Oct 2024 20:14:24 -0300 Subject: [PATCH] raises api version --- lib/api.py | 2 +- lib/services/rocket.py | 4 ++-- lib/settings/gunicorn.py | 2 +- pyproject.toml | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/api.py b/lib/api.py index 7bbdea8..91afdb6 100644 --- a/lib/api.py +++ b/lib/api.py @@ -46,7 +46,7 @@ def custom_openapi(): return app.openapi_schema openapi_schema = get_openapi( title="RocketPy Infinity-API", - version="2.1.0", + version="2.2.0", description=( "

RocketPy Infinity-API is a RESTful Open API for RocketPy, a rocket flight simulator.

" "
" diff --git a/lib/services/rocket.py b/lib/services/rocket.py index 40a8ea1..c6b6722 100644 --- a/lib/services/rocket.py +++ b/lib/services/rocket.py @@ -40,8 +40,8 @@ def from_rocket_model(cls, rocket: Rocket) -> Self: radius=rocket.radius, mass=rocket.mass, inertia=rocket.inertia, - power_off_drag=(None or rocket.power_off_drag), - power_on_drag=(None or rocket.power_on_drag), + power_off_drag=rocket.power_off_drag, + power_on_drag=rocket.power_on_drag, center_of_mass_without_motor=rocket.center_of_mass_without_motor, coordinate_system_orientation=rocket.coordinate_system_orientation.value.lower(), ) diff --git a/lib/settings/gunicorn.py b/lib/settings/gunicorn.py index 39b0b19..a563567 100644 --- a/lib/settings/gunicorn.py +++ b/lib/settings/gunicorn.py @@ -7,7 +7,7 @@ def post_fork(server, worker): # pylint: disable=unused-argument uptrace.configure_opentelemetry( dsn=Secrets.get_secret("UPTRACE_DSN"), service_name="infinity-api", - service_version="2.1.0", + service_version="2.2.0", deployment_environment="production", ) from lib.api import ( # pylint: disable=import-outside-toplevel diff --git a/pyproject.toml b/pyproject.toml index 78929dd..c3dbcae 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,7 @@ dependencies = {file = ["requirements.txt"]} [project] name = "Infinity-API" -version = "2.1.0" +version = "2.2.0" description = "RESTFULL open API for rocketpy" dynamic = ["dependencies"] requires-python = ">=3.12"