Skip to content

Commit

Permalink
Use enironment variable instead of CKAN setting to get admin email fo…
Browse files Browse the repository at this point in the history
…r submission email receipt
  • Loading branch information
root committed Jun 14, 2024
1 parent b9e701e commit 9874437
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 9874437

Please sign in to comment.