From 31fb381063d3c6f7090ad3c7b9e44e6750fb9cbb Mon Sep 17 00:00:00 2001 From: W1CDN Date: Thu, 14 Dec 2023 08:55:15 -0600 Subject: [PATCH] Assign first party and add frames.rng field. --- constants.py | 1 + kiss_and_db.py | 3 +-- schema.sql | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/constants.py b/constants.py index c711b2f..1a0dc5c 100644 --- a/constants.py +++ b/constants.py @@ -33,6 +33,7 @@ db_frames_fields = ("id", "posambiguity", "raw", "raw_timestamp", +"rng", "speed", "station_call", "station_lat", diff --git a/kiss_and_db.py b/kiss_and_db.py index 395d6cb..3c46b37 100644 --- a/kiss_and_db.py +++ b/kiss_and_db.py @@ -73,6 +73,7 @@ def main(): a['station_lat'] = config['Settings']['station_lat'] a['station_lon'] = config['Settings']['station_lon'] a['created_unix'] = int(time.time()) + a['party'] = 1 # Make this a string and deal with it later (probably a mistake) a['path'] = str(a['path']) @@ -87,8 +88,6 @@ def main(): b['station_lat'] = config['Settings']['station_lat'] b['station_lon'] = config['Settings']['station_lon'] b['created_unix'] = int(time.time()) - else: - a['party'] = 1 #logging.debug(a['path']) # Store true/false as 1/0 if 'alive' in a: diff --git a/schema.sql b/schema.sql index ea29c02..50f5a24 100644 --- a/schema.sql +++ b/schema.sql @@ -35,6 +35,7 @@ CREATE TABLE frames ( posambiguity INT, raw TEXT, raw_timestamp TEXT, + rng REAL, speed REAL, station_call TEXT, station_lat REAL,