mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-11 20:19:38 +02:00
Linting
This commit is contained in:
parent
673a858bc3
commit
c26618bff1
1 changed files with 10 additions and 8 deletions
|
@ -41,6 +41,7 @@ class CreateOrUpdateOrganizationTypeHelper:
|
|||
"""
|
||||
A helper that manages the "organization_type" field in DomainRequest and DomainInformation
|
||||
"""
|
||||
|
||||
def __init__(self, sender, instance, generic_org_to_org_map, election_org_to_generic_org_map):
|
||||
# The "model type"
|
||||
self.sender = sender
|
||||
|
@ -162,7 +163,9 @@ class CreateOrUpdateOrganizationTypeHelper:
|
|||
else:
|
||||
# This can only happen with manual data tinkering, which causes these to be out of sync.
|
||||
if self.instance.is_election_board is None:
|
||||
logger.warning("create_or_update_organization_type() -> is_election_board is out of sync. Updating value.")
|
||||
logger.warning(
|
||||
"create_or_update_organization_type() -> is_election_board is out of sync. Updating value."
|
||||
)
|
||||
self.instance.is_election_board = False
|
||||
|
||||
if self.instance.is_election_board:
|
||||
|
@ -242,4 +245,3 @@ class CreateOrUpdateOrganizationTypeHelper:
|
|||
return False
|
||||
else:
|
||||
return True
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue