From f694e65c2a7abdce44b9bca7363660d5ee9fc824 Mon Sep 17 00:00:00 2001 From: W1CDN Date: Sat, 26 Aug 2023 16:23:55 -0500 Subject: [PATCH] Clean up a bit. --- kiss_and_db.py | 7 ++----- templates/index.html | 7 ++++--- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/kiss_and_db.py b/kiss_and_db.py index f463b23..c799a70 100644 --- a/kiss_and_db.py +++ b/kiss_and_db.py @@ -70,9 +70,8 @@ def main(): try: # Insert data sql = "INSERT INTO frames ("+attrib_names+") VALUES ("+attrib_values+")" - logging.debug(sql) conn.execute(sql, list(a.values())) - + logging.debug("Frames table updated") # TODO update stations table here # Original intent was to include the id from the frames table, # but that would mean making another query. @@ -87,11 +86,9 @@ def main(): ON CONFLICT([from]) \ DO UPDATE SET count = count + 1,\ last_heard_unix = excluded.last_heard_unix;" - #print(query3) - logging.debug(query3) # Insert/update data conn.execute(query3) - + logging.debug("Station table updated") conn.commit() #except: # print("Stations table couldn't be updated.") diff --git a/templates/index.html b/templates/index.html index 6cfa01b..3b864fd 100644 --- a/templates/index.html +++ b/templates/index.html @@ -12,7 +12,10 @@

{{station_call}} Status

-{{station_lat}}, {{station_lon}} +Station location: {{station_lat}}, {{station_lon}} + +

About

+This is a work in progress. See https://amiok.net/gitea/W1CDN/aprs_tool for usage.

Recent RF Packets

@@ -57,7 +60,5 @@ {% endfor %}
-

Help

-This is a work in progress. See https://amiok.net/gitea/W1CDN/aprs_tool for usage.