From 431f02ec3aeabfe44c0e343cb7aa89a266bf7a74 Mon Sep 17 00:00:00 2001 From: Eric Andrechek Date: Sun, 14 Apr 2024 11:24:02 -0400 Subject: [PATCH] aprs parse --- tracking-dashboard/backend/aprs-syncer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tracking-dashboard/backend/aprs-syncer.py b/tracking-dashboard/backend/aprs-syncer.py index 60e0c0b..50f5718 100644 --- a/tracking-dashboard/backend/aprs-syncer.py +++ b/tracking-dashboard/backend/aprs-syncer.py @@ -41,11 +41,11 @@ def callback(packet): # check if callsign exists in items table print("Data: ", data_obj.data) - name = data_obj.data['callsign'] + "-" + str(data_obj.data['ssid']) + name = data_obj.info['callsign'] + "-" + str(data_obj.info['ssid']) item = check_item_id(name) if item is None: # add item to items table - add_item_id(name, data_obj.data['callsign'], data_obj.data['ssid'], data_obj.data['symbol']) + add_item_id(name, data_obj.info['callsign'], data_obj.info['ssid'], data_obj.info['symbol']) else: # change callsign, name, and symbol to item values data_obj.data['callsign'] = item.callsign