mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-25 20:18:38 +02:00
Fix script
This commit is contained in:
parent
a2885340ef
commit
212d2002e3
1 changed files with 0 additions and 3 deletions
|
@ -95,8 +95,6 @@ class Command(BaseCommand):
|
|||
if request.generic_org_type is not None:
|
||||
domain_name = request.requested_domain.name
|
||||
request.is_election_board = domain_name in self.domains_with_election_offices_set
|
||||
new_request = create_or_update_organization_type(DomainRequest, request, return_instance=True)
|
||||
print(f"what is the new request? {new_request}")
|
||||
if not new_request:
|
||||
self.request_skipped.append(request)
|
||||
logger.warning(f"Skipped updating {request}. No changes to be made.")
|
||||
|
@ -132,7 +130,6 @@ class Command(BaseCommand):
|
|||
if info.generic_org_type is not None:
|
||||
domain_name = info.domain.name
|
||||
info.is_election_board = domain_name in self.domains_with_election_offices_set
|
||||
info = create_or_update_organization_type(DomainInformation, info, return_instance=True)
|
||||
self.di_to_update.append(info)
|
||||
if debug:
|
||||
logger.info(f"Updating {info} => {info.organization_type}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue