Skip to content

Commit

Permalink
updates repositories init
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielBarberini committed May 24, 2024
1 parent 288ad39 commit 7d615c7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/repositories/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class EnvRepository(Repository):
def __init__(self):
super().__init__("environments")
self._env = None
self._env_id = None

def fetch_env(self, environment: Env):
self.env = environment
Expand Down
1 change: 1 addition & 0 deletions lib/repositories/flight.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class FlightRepository(Repository):
def __init__(self):
super().__init__("flights")
self._flight = None
self._flight_id = None

def fetch_flight(self, flight: Flight):
self.flight = flight
Expand Down
1 change: 1 addition & 0 deletions lib/repositories/motor.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class MotorRepository(Repository):
def __init__(self):
super().__init__("motors")
self._motor = None
self._motor_id = None

def fetch_motor(self, motor: Motor):
self.motor = motor
Expand Down

0 comments on commit 7d615c7

Please sign in to comment.