Skip to content

Commit

Permalink
Make terminal output more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
zandercymatics committed Jan 10, 2024
1 parent d49b42d commit 2ac2996
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,14 @@ def patch_agency_info(self, debug):
# Get the domain names from TransitionDomain
td_agencies = transition_domains.values_list("domain_name", "federal_agency").distinct()

human_readable_domain_names = list(domain_names)
# Code execution will stop here if the user prompts "N"
TerminalHelper.prompt_for_execution(
system_exit_on_terminate=True,
info_to_inspect=f"""
==Proposed Changes==
Number of DomainInformation objects to change: {len(domain_info_to_fix)}
The following DomainInformation objects will be modified: {domain_info_to_fix}
Number of DomainInformation objects to change: {len(human_readable_domain_names)}
The following DomainInformation objects will be modified: {human_readable_domain_names}
""",
prompt_title="Do you wish to patch federal_agency data?",
)
Expand Down

0 comments on commit 2ac2996

Please sign in to comment.