Skip to content

Commit

Permalink
update float descent setter (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyburnett authored Aug 6, 2021
1 parent b35b012 commit 475236e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packetraven/predicts.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def __init__(
descent_only: bool = False,
):
if profile is None:
if float_altitude is not None or float_end_time is not None:
if float_altitude is not None or float_end_time is not None and not descent_only:
profile = FlightProfile.float
else:
profile = FlightProfile.standard
Expand Down Expand Up @@ -240,6 +240,7 @@ def get(self) -> {str: Any}:
float_end_time=None,
api_url=self.api_url,
name=self.name,
descent_only=True,
)

for stage in standard_profile_query.get()['prediction']:
Expand Down

0 comments on commit 475236e

Please sign in to comment.