mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-29 08:50:01 +02:00
Updates to prompts and print statements for master migration to be easier to work with
This commit is contained in:
parent
019b139e8d
commit
2b2a0c0fba
5 changed files with 149 additions and 37 deletions
|
@ -381,8 +381,10 @@ class Command(BaseCommand):
|
|||
|
||||
# Start parsing the main file and create TransitionDomain objects
|
||||
logger.info("Reading domain-contacts data file %s", domain_contacts_filename)
|
||||
total_lines = TerminalHelper.get_file_line_count(domain_contacts_filename)
|
||||
with open(domain_contacts_filename, "r") as domain_contacts_file:
|
||||
for row in csv.reader(domain_contacts_file, delimiter=sep):
|
||||
# TerminalHelper.printProgressBar(total_rows_parsed, total_lines)
|
||||
total_rows_parsed += 1
|
||||
|
||||
# fields are just domain, userid, role
|
||||
|
@ -394,6 +396,8 @@ class Command(BaseCommand):
|
|||
new_entry_email = ""
|
||||
new_entry_emailSent = False # set to False by default
|
||||
|
||||
TerminalHelper.print_conditional(debug_on, f"Processing item {total_rows_parsed}: {new_entry_domain_name}")
|
||||
|
||||
# PART 1: Get the status
|
||||
if new_entry_domain_name not in domain_status_dictionary:
|
||||
# This domain has no status...default to "Create"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue