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",
|
||||
"raw",
|
||||
"raw_timestamp",
|
||||
"rng",
|
||||
"speed",
|
||||
"station_call",
|
||||
"station_lat",
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -35,6 +35,7 @@ CREATE TABLE frames (
|
|||
posambiguity INT,
|
||||
raw TEXT,
|
||||
raw_timestamp TEXT,
|
||||
rng REAL,
|
||||
speed REAL,
|
||||
station_call TEXT,
|
||||
station_lat REAL,
|
||||
|
|
Loading…
Reference in New Issue
Block a user