From df5d24b8ba68b0f0f1730d368d8363581a1e082e Mon Sep 17 00:00:00 2001 From: Mike Date: Sun, 17 Sep 2023 13:49:21 -0700 Subject: [PATCH] Fix Call Change --- sat2aprs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sat2aprs.py b/sat2aprs.py index 02a3422..3557ff8 100644 --- a/sat2aprs.py +++ b/sat2aprs.py @@ -204,9 +204,9 @@ def webhook(): # Update the alias map if the new aprsCall is not in it for number, call in alias_map.items(): - if call == aprsCall: + if call == aprsCall and number == from_number: alias_map[number] = new_aprsCall - print('Updated alias map:', alias_map) + print('Updated alias map for number {}:'.format(number), alias_map) # If the from_number is not in the alias map, add it with the new APRS call if from_number not in alias_map: