Assign first party and add frames.rng field.

This commit is contained in:
W1CDN 2023-12-14 08:55:15 -06:00
parent 8f2425290c
commit 31fb381063
3 changed files with 3 additions and 2 deletions

View File

@ -33,6 +33,7 @@ db_frames_fields = ("id",
"posambiguity",
"raw",
"raw_timestamp",
"rng",
"speed",
"station_call",
"station_lat",

View File

@ -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:

View File

@ -35,6 +35,7 @@ CREATE TABLE frames (
posambiguity INT,
raw TEXT,
raw_timestamp TEXT,
rng REAL,
speed REAL,
station_call TEXT,
station_lat REAL,