Assign first party and add frames.rng field.
This commit is contained in:
parent
8f2425290c
commit
31fb381063
|
@ -33,6 +33,7 @@ db_frames_fields = ("id",
|
||||||
"posambiguity",
|
"posambiguity",
|
||||||
"raw",
|
"raw",
|
||||||
"raw_timestamp",
|
"raw_timestamp",
|
||||||
|
"rng",
|
||||||
"speed",
|
"speed",
|
||||||
"station_call",
|
"station_call",
|
||||||
"station_lat",
|
"station_lat",
|
||||||
|
|
|
@ -73,6 +73,7 @@ def main():
|
||||||
a['station_lat'] = config['Settings']['station_lat']
|
a['station_lat'] = config['Settings']['station_lat']
|
||||||
a['station_lon'] = config['Settings']['station_lon']
|
a['station_lon'] = config['Settings']['station_lon']
|
||||||
a['created_unix'] = int(time.time())
|
a['created_unix'] = int(time.time())
|
||||||
|
a['party'] = 1
|
||||||
|
|
||||||
# Make this a string and deal with it later (probably a mistake)
|
# Make this a string and deal with it later (probably a mistake)
|
||||||
a['path'] = str(a['path'])
|
a['path'] = str(a['path'])
|
||||||
|
@ -87,8 +88,6 @@ def main():
|
||||||
b['station_lat'] = config['Settings']['station_lat']
|
b['station_lat'] = config['Settings']['station_lat']
|
||||||
b['station_lon'] = config['Settings']['station_lon']
|
b['station_lon'] = config['Settings']['station_lon']
|
||||||
b['created_unix'] = int(time.time())
|
b['created_unix'] = int(time.time())
|
||||||
else:
|
|
||||||
a['party'] = 1
|
|
||||||
#logging.debug(a['path'])
|
#logging.debug(a['path'])
|
||||||
# Store true/false as 1/0
|
# Store true/false as 1/0
|
||||||
if 'alive' in a:
|
if 'alive' in a:
|
||||||
|
|
|
@ -35,6 +35,7 @@ CREATE TABLE frames (
|
||||||
posambiguity INT,
|
posambiguity INT,
|
||||||
raw TEXT,
|
raw TEXT,
|
||||||
raw_timestamp TEXT,
|
raw_timestamp TEXT,
|
||||||
|
rng REAL,
|
||||||
speed REAL,
|
speed REAL,
|
||||||
station_call TEXT,
|
station_call TEXT,
|
||||||
station_lat REAL,
|
station_lat REAL,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user