kopia lustrzana https://github.com/glidernet/ogn-python
Better detection with multiple receivers in sight
rodzic
08c0a73d54
commit
a039ee3185
|
@ -23,7 +23,8 @@ def compute_logbook_entries(session=None):
|
|||
# 'wo' is the window order for the sql window function
|
||||
wo = and_(func.date(TakeoffLanding.timestamp),
|
||||
TakeoffLanding.device_id,
|
||||
TakeoffLanding.timestamp)
|
||||
TakeoffLanding.timestamp,
|
||||
TakeoffLanding.airport_id)
|
||||
|
||||
# make a query with current, previous and next "takeoff_landing" event, so we can find complete flights
|
||||
sq = session.query(
|
||||
|
|
|
@ -57,7 +57,9 @@ def compute_takeoff_and_landing(session=None):
|
|||
aircraft_beacon_end_id = aircraft_beacon_start_id + 500000
|
||||
|
||||
# 'wo' is the window order for the sql window function
|
||||
wo = and_(AircraftBeacon.device_id, AircraftBeacon.timestamp)
|
||||
wo = and_(AircraftBeacon.device_id,
|
||||
AircraftBeacon.timestamp,
|
||||
AircraftBeacon.receiver_id)
|
||||
|
||||
# make a query with current, previous and next position
|
||||
sq = session.query(
|
||||
|
|
Ładowanie…
Reference in New Issue