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
1 changed files with 2 additions and 2 deletions

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()}