kopia lustrzana https://github.com/glidernet/ogn-python
Use status == 1 for 'used for takeoff-landing-detection' instead of 0
rodzic
145f21604a
commit
b87510b9b7
|
@ -184,4 +184,4 @@ def update_max_altitude(session=None):
|
|||
session.commit()
|
||||
logger.info("Logbook: {} entries updated.".format(update_logbook))
|
||||
|
||||
return update_logbook
|
||||
return "Logbook: {} entries updated.".format(update_logbook)
|
||||
|
|
|
@ -134,7 +134,7 @@ def update_takeoff_landing(session=None):
|
|||
# mark the computated AircraftBeacons as 'used'
|
||||
update_aircraft_beacons = session.query(AircraftBeacon) \
|
||||
.filter(AircraftBeacon.id == sq2.c.id) \
|
||||
.update({AircraftBeacon.status: 0},
|
||||
.update({AircraftBeacon.status: 1},
|
||||
synchronize_session='fetch')
|
||||
|
||||
session.commit()
|
||||
|
|
Ładowanie…
Reference in New Issue