From c1e67927218a9d55466f4a7f43dd0e44f7656fcc Mon Sep 17 00:00:00 2001 From: Hemna Date: Mon, 25 Jan 2021 15:15:53 -0500 Subject: [PATCH] Fixed resend email after config rework This patch fixes 1 missed access to the shortcuts after the restructuring of the config file --- aprsd/email.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aprsd/email.py b/aprsd/email.py index 9012434..07c9048 100644 --- a/aprsd/email.py +++ b/aprsd/email.py @@ -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()}