kopia lustrzana https://github.com/glidernet/ogn-python
Update descriptions
rodzic
eba91c5f5c
commit
f829c9996a
20
README.md
20
README.md
|
@ -102,7 +102,6 @@ available commands:
|
||||||
import_ddb Import registered devices from the DDB.
|
import_ddb Import registered devices from the DDB.
|
||||||
import_file Import registered devices from a local file.
|
import_file Import registered devices from a local file.
|
||||||
init Initialize the database.
|
init Initialize the database.
|
||||||
update_relations Update AircraftBeacon and ReceiverBeacon relations
|
|
||||||
upgrade Upgrade database to the latest version.
|
upgrade Upgrade database to the latest version.
|
||||||
|
|
||||||
[gateway]
|
[gateway]
|
||||||
|
@ -116,6 +115,11 @@ available commands:
|
||||||
compute_takeoff_landingCompute takeoffs and landings.
|
compute_takeoff_landingCompute takeoffs and landings.
|
||||||
show Show a logbook for <airport_name>.
|
show Show a logbook for <airport_name>.
|
||||||
|
|
||||||
|
[stats]
|
||||||
|
airports Compute airport statistics.
|
||||||
|
devices Compute device statistics
|
||||||
|
receivers Compute receiver statistics.
|
||||||
|
|
||||||
[show.airport]
|
[show.airport]
|
||||||
list_all Show a list of all airports.
|
list_all Show a list of all airports.
|
||||||
|
|
||||||
|
@ -139,10 +143,16 @@ Only the command `logbook.compute` requires a running task server (celery) at th
|
||||||
|
|
||||||
### Available tasks
|
### Available tasks
|
||||||
|
|
||||||
- `ogn.collect.database.import_ddb` - Import registered devices from the ddb
|
- `ogn.collect.database.import_ddb` - Import registered devices from the DDB.
|
||||||
- `ogn.collect.database.import_file` - Import registered devices from a local file
|
- `ogn.collect.database.import_file` - Import registered devices from a local file.
|
||||||
- `ogn.collect.receiver.update_receivers` - Populate/update receiver table
|
- `ogn.collect.database.update_country_code` - Update country code in receivers table if None.
|
||||||
- `ogn.collect.logbook.compute_takeoff_and_landing` - Generate TakeoffLanding table
|
- `ogn.collect.database.update_devices` - Add/update entries in devices table and update foreign keys in aircraft beacons.
|
||||||
|
- `ogn.collect.database.update_receivers` - Add/update_receivers entries in receiver table and update receivers foreign keys and distance in aircraft beacons and update foreign keys in receiver beacons.
|
||||||
|
- `ogn.collect.logbook.update_logbook` - Add/update logbook entries.
|
||||||
|
- `ogn.collect.logbook.update_max_altitude` - Add max altitudes in logbook when flight is complete (takeoff and landing).
|
||||||
|
- `ogn.collect.stats.update_device_stats` - Add/update entries in device stats table.
|
||||||
|
- `ogn.collect.stats.update_receiver_stats` - Add/update entries in receiver stats table.
|
||||||
|
- `ogn.collect.takeoff_landing.update_takeoff_landing` - Compute takeoffs and landings.
|
||||||
|
|
||||||
If the task server is up and running, tasks could be started manually.
|
If the task server is up and running, tasks could be started manually.
|
||||||
|
|
||||||
|
|
|
@ -245,7 +245,7 @@ def update_receivers(session=None):
|
||||||
|
|
||||||
@app.task
|
@app.task
|
||||||
def update_country_code(session=None):
|
def update_country_code(session=None):
|
||||||
# update country code in receivers table if None
|
"""Update country code in receivers table if None."""
|
||||||
|
|
||||||
if session is None:
|
if session is None:
|
||||||
session = app.session
|
session = app.session
|
||||||
|
|
|
@ -12,6 +12,8 @@ logger = get_task_logger(__name__)
|
||||||
|
|
||||||
@app.task
|
@app.task
|
||||||
def update_logbook(session=None):
|
def update_logbook(session=None):
|
||||||
|
"""Add/update logbook entries."""
|
||||||
|
|
||||||
logger.info("Compute logbook.")
|
logger.info("Compute logbook.")
|
||||||
|
|
||||||
if session is None:
|
if session is None:
|
||||||
|
@ -158,6 +160,8 @@ def update_logbook(session=None):
|
||||||
|
|
||||||
@app.task
|
@app.task
|
||||||
def update_max_altitude(session=None):
|
def update_max_altitude(session=None):
|
||||||
|
"""Add max altitudes in logbook when flight is complete (takeoff and landing)."""
|
||||||
|
|
||||||
logger.info("Update logbook max altitude.")
|
logger.info("Update logbook max altitude.")
|
||||||
|
|
||||||
if session is None:
|
if session is None:
|
||||||
|
|
|
@ -14,6 +14,8 @@ logger = get_task_logger(__name__)
|
||||||
|
|
||||||
@app.task
|
@app.task
|
||||||
def update_takeoff_landing(session=None):
|
def update_takeoff_landing(session=None):
|
||||||
|
"""Compute takeoffs and landings."""
|
||||||
|
|
||||||
logger.info("Compute takeoffs and landings.")
|
logger.info("Compute takeoffs and landings.")
|
||||||
|
|
||||||
if session is None:
|
if session is None:
|
||||||
|
|
Ładowanie…
Reference in New Issue