mirror of
https://amiok.net/gitea/W1CDN/aprs_tool.git
synced 2025-07-18 02:00:27 +00:00
Add created_unix field to frames table.
This commit is contained in:
@ -5,6 +5,7 @@ import aprs
|
||||
import json
|
||||
import aprslib
|
||||
import configparser
|
||||
import time
|
||||
|
||||
def read_config():
|
||||
config = configparser.ConfigParser()
|
||||
@ -46,6 +47,7 @@ def main():
|
||||
a['station_call'] = config['Settings']['station_call']
|
||||
a['station_lat'] = config['Settings']['station_lat']
|
||||
a['station_lon'] = config['Settings']['station_lon']
|
||||
a['created_unix'] = int(time.time())
|
||||
print(a)
|
||||
# Make this a string and deal with it later (probably a mistake)
|
||||
a['path'] = str(a['path'])
|
||||
|
Reference in New Issue
Block a user