1
0
mirror of https://github.com/craigerl/aprsd.git synced 2024-12-20 08:31:11 -05:00

Fixed resend email after config rework

This patch fixes 1 missed access to the shortcuts after
the restructuring of the config file
This commit is contained in:
Hemna 2021-01-25 15:15:53 -05:00
parent aa290692ab
commit c1e6792721

View File

@ -87,7 +87,7 @@ def _smtp_connect():
def validate_shortcuts(config):
shortcuts = config.get("shortcuts", None)
shortcuts = config["aprsd"]["email"].get("shortcuts", None)
if not shortcuts:
return
@ -290,7 +290,7 @@ def resend_email(count, fromcall):
year = date.year
today = "{}-{}-{}".format(day, month, year)
shortcuts = CONFIG["shortcuts"]
shortcuts = CONFIG["aprsd"]["email"]["shortcuts"]
# swap key/value
shortcuts_inverted = {v: k for k, v in shortcuts.items()}