Skip to content

Commit

Permalink
fixes get environment call on flight route
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielBarberini committed Aug 11, 2024
1 parent 036b141 commit d4439f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/controllers/flight.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
from lib.repositories.flight import FlightRepository
from lib.controllers.environment import EnvController
from lib.controllers.rocket import RocketController
from lib.services.environment import EnvironmentService


class FlightController:
Expand Down Expand Up @@ -88,7 +89,7 @@ def get_rocketpy_flight(flight: Flight) -> RocketPyFlight:
RocketPyFlight
"""
rocketpy_rocket = RocketController.get_rocketpy_rocket(flight.rocket)
rocketpy_env = EnvController.get_rocketpy_env(flight.environment)
rocketpy_env = EnvironmentService.from_env_model(flight.environment)
rocketpy_flight = RocketPyFlight(
rocket=rocketpy_rocket,
inclination=flight.inclination,
Expand Down

0 comments on commit d4439f1

Please sign in to comment.