From ab8f43077cf0c6424f2011a68112e2e8049d1a6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20Gru=CC=88ndger?= Date: Sun, 15 Nov 2015 19:57:01 +0100 Subject: [PATCH] Local ddb file --- ogn/collect/fetchddb.py | 2 +- ogn/custom_ddb.txt | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 ogn/custom_ddb.txt diff --git a/ogn/collect/fetchddb.py b/ogn/collect/fetchddb.py index 1e3e354..1007d88 100644 --- a/ogn/collect/fetchddb.py +++ b/ogn/collect/fetchddb.py @@ -25,7 +25,7 @@ def update_ddb_data(): @app.task -def import_ddb_data(filename='custom.txt'): +def import_ddb_data(filename='custom_ddb.txt'): logger.info("Import ddb data from file.") devices = get_ddb(filename) diff --git a/ogn/custom_ddb.txt b/ogn/custom_ddb.txt new file mode 100644 index 0000000..8e8b56a --- /dev/null +++ b/ogn/custom_ddb.txt @@ -0,0 +1,2 @@ +#DEVICE_TYPE,DEVICE_ID,AIRCRAFT_MODEL,REGISTRATION,CN,TRACKED,IDENTIFIED +'F','DD0000','YourAircraft','D-1234','CN','Y','Y' \ No newline at end of file