Skip to content

Commit

Permalink
raises api version
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielBarberini committed Oct 9, 2024
1 parent c6d7781 commit dec12c1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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=(
"<p style='font-size: 18px;'>RocketPy Infinity-API is a RESTful Open API for RocketPy, a rocket flight simulator.</p>"
"<br/>"
Expand Down
4 changes: 2 additions & 2 deletions lib/services/rocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
)
Expand Down
2 changes: 1 addition & 1 deletion lib/settings/gunicorn.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit dec12c1

Please sign in to comment.