Skip to content

Commit

Permalink
Remove final mentions of odbx.science
Browse files Browse the repository at this point in the history
  • Loading branch information
ml-evs committed Jul 31, 2024
1 parent 9187bdc commit c7df5a8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# <div align="center"><i>datalab</i></div>

<div align="center" style="padding-bottom: 5px">
<a href="https://public.datalab.odbx.science"><img src="https://img.shields.io/badge/try_it_out!-public_demo_server-orange?logo=firefox"></a>
<a href="https://demo.datalab-org.io"><img src="https://img.shields.io/badge/try_it_out!-public_demo_server-orange?logo=firefox"></a>
</div>

<div align="center">
Expand Down
4 changes: 1 addition & 3 deletions pydatalab/pydatalab/routes/v0_1/collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"] = [
Expand Down
1 change: 0 additions & 1 deletion pydatalab/pydatalab/routes/v0_1/items.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,6 @@ def _create_sample(
new_sample["creators"] = [
{
"display_name": "Public testing user",
"contact_email": "[email protected]",
}
]
else:
Expand Down
7 changes: 6 additions & 1 deletion pydatalab/pydatalab/send_email.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from flask_mail import Mail, Message

from pydatalab.config import CONFIG
from pydatalab.logger import LOGGER

MAIL = Mail()
Expand All @@ -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,
Expand Down

0 comments on commit c7df5a8

Please sign in to comment.