Skip to content

Commit

Permalink
aprs parse
Browse files Browse the repository at this point in the history
  • Loading branch information
EricAndrechek committed Apr 14, 2024
1 parent c53d835 commit 431f02e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tracking-dashboard/backend/aprs-syncer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 431f02e

Please sign in to comment.