-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove final mentions of odbx.science
- Loading branch information
Showing
4 changed files
with
8 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -112,9 +112,7 @@ def create_collection(): | |
|
||
if CONFIG.TESTING: | ||
data["creator_ids"] = [24 * "0"] | ||
data["creators"] = [ | ||
{"display_name": "Public testing user", "contact_email": "[email protected]"} | ||
] | ||
data["creators"] = [{"display_name": "Public testing user"}] | ||
else: | ||
data["creator_ids"] = [current_user.person.immutable_id] | ||
data["creators"] = [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -448,7 +448,6 @@ def _create_sample( | |
new_sample["creators"] = [ | ||
{ | ||
"display_name": "Public testing user", | ||
"contact_email": "[email protected]", | ||
} | ||
] | ||
else: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
|
||
from flask_mail import Mail, Message | ||
|
||
from pydatalab.config import CONFIG | ||
from pydatalab.logger import LOGGER | ||
|
||
MAIL = Mail() | ||
|
@@ -22,8 +23,12 @@ def send_mail(recipient: str, subject: str, body: str): | |
""" | ||
LOGGER.debug("Sending email to %s", recipient) | ||
|
||
sender = None | ||
if CONFIG.EMAIL_AUTH_SMTP_SETTINGS is not None: | ||
sender = CONFIG.EMAIL_AUTH_SMTP_SETTINGS.MAIL_DEFAULT_SENDER | ||
|
||
message = Message( | ||
sender="[email protected]", | ||
sender=sender, | ||
recipients=[recipient], | ||
body=body, | ||
subject=subject, | ||
|