Skip to content

Commit

Permalink
Merge pull request #230 from AuScope/AusDataRepo-Fix-Admin-Email
Browse files Browse the repository at this point in the history
AuScope Data Repository Fix Admin Email
  • Loading branch information
stuartwoodman authored Jun 14, 2024
2 parents b9e701e + 9874437 commit d849c0b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from ckan.lib.base import render
import ckan.lib.mailer as mailer
from datetime import datetime
import os



Expand Down Expand Up @@ -162,7 +163,7 @@ def send_admin_dataset_notification(context, pkg_dict):
dataset_title = pkg_dict['title']
subject = 'AuScope Data Repository - Dataset Submitted "{dataset_title}"'.format(dataset_title=dataset_title)
recipient_name = 'AuScope Data Repository admin'
recipient_email = config.get('ckan_sysadmin_email')
recipient_email = os.environ.get('CKAN_SYSADMIN_EMAIL')
mailer.mail_recipient(recipient_name, recipient_email, subject, body)


Expand Down

0 comments on commit d849c0b

Please sign in to comment.