Skip to content

Commit

Permalink
Email parsing fix
Browse files Browse the repository at this point in the history
After demoing with Abby, we found out that the emails weren't being parsed correctly due to differences in our previous configs vs the new generation method. Fixing and testing!
  • Loading branch information
nataliejschultz committed Jan 25, 2024
1 parent eaf66e8 commit 708f7ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion configs/wyoming.nrel-op.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"options_emails": true,
"admin_access": [
"[email protected]",
" [email protected]"
" [email protected]"
]
}
}
2 changes: 1 addition & 1 deletion email_automation/email-config.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def email_extract():
with open (config_path) as config_file:
data = json.load(config_file)
admindash_prefs = data['admin_dashboard']
emails = [i.strip() for i in admindash_prefs['admin_access'].split(",")]
emails = [i.strip().lstrip() for i in admindash_prefs['admin_access']]
columns_exclude = admindash_prefs['data_trips_columns_exclude']
map_trip_lines_enabled = admindash_prefs['map_trip_lines']
return emails, map_trip_lines_enabled, columns_exclude
Expand Down

0 comments on commit 708f7ec

Please sign in to comment.