mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-26 04:28:39 +02:00
lint
This commit is contained in:
parent
bc92270897
commit
b9dc928084
2 changed files with 3 additions and 3 deletions
|
@ -109,7 +109,7 @@ class Command(BaseCommand):
|
|||
system_exit_on_terminate=True,
|
||||
prompt_message="This action will update domain requests even if they aren't on a portfolio.",
|
||||
prompt_title="Do you want to clear federal agency on (related) started domain requests?",
|
||||
verify_message=None
|
||||
verify_message=None,
|
||||
)
|
||||
self.post_process_started_domain_requests(agencies, portfolios)
|
||||
|
||||
|
@ -248,7 +248,7 @@ class Command(BaseCommand):
|
|||
TerminalHelper.colorful_logger(logger.warning, TerminalColors.YELLOW, message)
|
||||
else:
|
||||
new_suborgs.append(
|
||||
Suborganization(name=normalize_string(name, lowercase=False), portfolio=portfolio)
|
||||
Suborganization(name=name, portfolio=portfolio)
|
||||
) # type: ignore
|
||||
|
||||
if new_suborgs:
|
||||
|
|
|
@ -345,7 +345,7 @@ def value_of_attribute(obj, attribute_name: str):
|
|||
return value
|
||||
|
||||
|
||||
def normalize_string(string_to_normalize: str, lowercase=True) -> str:
|
||||
def normalize_string(string_to_normalize, lowercase=True):
|
||||
"""Normalizes a given string. Returns a string without extra spaces, in all lowercase."""
|
||||
if not isinstance(string_to_normalize, str):
|
||||
logger.error(f"normalize_string => {string_to_normalize} is not type str.")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue