Browse Source

Fix alias in the dictionary

lastcall
Mike 2 years ago
committed by GitHub
parent
commit
b25e89dade
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      sms.py

+ 5
- 0
sms.py View File

@ -327,6 +327,11 @@ def receive_aprs_messages():
if match:
recipient = match.group(1)
# Use the reverse alias mapping to check if the sender's phone number has an associated alias
alias = alias_map.get(recipient.lower())
if alias:
recipient = alias
# Update the dictionary with the last message number for the callsign
last_message_number[recipient] = from_callsign
print ("To #", recipient)


Loading…
Cancel
Save