mirror of
https://amiok.net/gitea/W1CDN/aprs_tool.git
synced 2025-07-26 21:36:15 +00:00
Use stations table on index.html.
This commit is contained in:
@@ -29,6 +29,7 @@ def main():
|
||||
ki = aprs.TCPKISS(host=config['Settings']['kiss_host'], port=int(config['Settings']['kiss_port']))
|
||||
ki.start()
|
||||
|
||||
|
||||
# Make a simple frame and send it
|
||||
frame = aprs.APRSFrame.ui(
|
||||
destination="APZ001",
|
||||
@@ -72,6 +73,7 @@ def main():
|
||||
# It's not immediately needed, so I'm skipping it.
|
||||
# Build query
|
||||
# "from" is wrappedin [] because it is a reserved word and using '' doesn't work.
|
||||
# https://www.sqlite.org/lang_keywords.html
|
||||
try:
|
||||
station_update = "'"+a['from'] +"', '"+ str(a['created_unix']) +"', '1'"
|
||||
query3 = "INSERT INTO stations ([from], last_heard_unix, count) \
|
||||
|
Reference in New Issue
Block a user