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:
parent
aa290692ab
commit
c1e6792721
@ -87,7 +87,7 @@ def _smtp_connect():
|
|||||||
|
|
||||||
|
|
||||||
def validate_shortcuts(config):
|
def validate_shortcuts(config):
|
||||||
shortcuts = config.get("shortcuts", None)
|
shortcuts = config["aprsd"]["email"].get("shortcuts", None)
|
||||||
if not shortcuts:
|
if not shortcuts:
|
||||||
return
|
return
|
||||||
|
|
||||||
@ -290,7 +290,7 @@ def resend_email(count, fromcall):
|
|||||||
year = date.year
|
year = date.year
|
||||||
today = "{}-{}-{}".format(day, month, year)
|
today = "{}-{}-{}".format(day, month, year)
|
||||||
|
|
||||||
shortcuts = CONFIG["shortcuts"]
|
shortcuts = CONFIG["aprsd"]["email"]["shortcuts"]
|
||||||
# swap key/value
|
# swap key/value
|
||||||
shortcuts_inverted = {v: k for k, v in shortcuts.items()}
|
shortcuts_inverted = {v: k for k, v in shortcuts.items()}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user