Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/678 add guid to gspc emails #766

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion training/api/email.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ class InviteTuple(NamedTuple):


def send_gspc_invite_emails(invites: list[InviteTuple]) -> None:
logging.info(f"Starting gspc invite job, number of invites:{invites.count}")
logging.info(f"Starting gspc invite job, number of invites:{len(invites)}")
email_messages = [create_email_message(invite) for invite in invites]
send_emails_in_batches(email_messages=email_messages, batch_size=10)
logging.info("Finished gspc invite job")
Expand Down
2 changes: 1 addition & 1 deletion training/repositories/gspc_invite.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def create(self, email: str, certification_expiration_date: date) -> models.Gspc

def bulk_create(self, emails: list[str], certification_expiration_date: date) -> list[models.GspcInvite]:
"""Bulk insert GspcInvite records for multiple emails."""
logging.info(f"Starting gspc bulk create, number of invites:{emails.count}")
logging.info(f"Starting gspc bulk create, number of invites:{len(emails)}")
invites = [
models.GspcInvite(
email=email,
Expand Down