Release callsigns when deleting flights (#3455)

This commit is contained in:
zhexu14 2024-11-07 21:33:43 +11:00 committed by GitHub
parent 9ab5d0e892
commit 14ccc0753d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -104,4 +104,6 @@ class PackageBuilder:
"""Returns any planned flights to the inventory."""
flights = list(self.package.flights)
for flight in flights:
if flight.callsign is not None:
self.callsign_generator.release_callsign(flight.callsign)
self.package.remove_flight(flight)