Skip to content

Commit

Permalink
fixing LT pilots flying not recognized
Browse files Browse the repository at this point in the history
  • Loading branch information
biuti committed Aug 20, 2024
1 parent f3931b0 commit 6e434ba
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions airscore/core/livetracking.py
Original file line number Diff line number Diff line change
Expand Up @@ -689,11 +689,11 @@ def associate_livetracks(task: LiveTask, pilots: list, response, timestamp):
continue
if not pil.first_time and not pilot_is_airborne(fixes):
'''did not take off yet'''
# print(f"{pil.name}: first_time {pil.first_time} - did not took off yet")
pil.last_time = int(fixes[-1]['d']) - midnight
pil.live_comment = 'not flying'
pil.livetrack = []
continue
print(f"*** Pilot {pil.ID} did not took off yet")
# pil.last_time = int(fixes[-1]['d']) - midnight
# pil.live_comment = 'not flying'
# pil.livetrack = []
# continue
flight = []
# print(f"{pil.name}: first_time {pil.first_time} - adding fixes to pilot object")
# print(f"Fixes to add: {len(fixes)}")
Expand Down

0 comments on commit 6e434ba

Please sign in to comment.