mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-13 04:59:59 +02:00
remove extra debug statements
This commit is contained in:
parent
d89f324e6f
commit
7d8b8fa755
1 changed files with 0 additions and 4 deletions
|
@ -196,7 +196,6 @@ class Command(BaseCommand):
|
||||||
|
|
||||||
# Fetch all domains associated with the portfolio
|
# Fetch all domains associated with the portfolio
|
||||||
domains = Domain.objects.filter(domain_info__portfolio=portfolio)
|
domains = Domain.objects.filter(domain_info__portfolio=portfolio)
|
||||||
logger.debug(f"domains: {domains}")
|
|
||||||
domain_managers: set[int] = set()
|
domain_managers: set[int] = set()
|
||||||
|
|
||||||
# Fetch all users with manager roles for the domains
|
# Fetch all users with manager roles for the domains
|
||||||
|
@ -214,7 +213,6 @@ class Command(BaseCommand):
|
||||||
).values_list("email", flat=True)
|
).values_list("email", flat=True)
|
||||||
invited_managers.update(domain_invitations)
|
invited_managers.update(domain_invitations)
|
||||||
|
|
||||||
logger.debug(f"invited_managers: {invited_managers}")
|
|
||||||
for id in domain_managers:
|
for id in domain_managers:
|
||||||
try:
|
try:
|
||||||
# manager is a user id
|
# manager is a user id
|
||||||
|
@ -242,9 +240,7 @@ class Command(BaseCommand):
|
||||||
If the user already has a portfolio invitation, retreive their invitation and create a portfolio permission.
|
If the user already has a portfolio invitation, retreive their invitation and create a portfolio permission.
|
||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
logger.debug(f"Creating portfolio invitation for user '{email}'")
|
|
||||||
user = User.objects.get(email=email)
|
user = User.objects.get(email=email)
|
||||||
logger.debug(f"user: {user}")
|
|
||||||
_, created = PortfolioInvitation.objects.get_or_create(
|
_, created = PortfolioInvitation.objects.get_or_create(
|
||||||
portfolio=portfolio,
|
portfolio=portfolio,
|
||||||
user=user,
|
user=user,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue