This commit is contained in:
zandercymatics 2023-10-26 12:03:35 -06:00
parent 225437cdb4
commit afcb0ec15a
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
4 changed files with 242 additions and 0 deletions

View file

@ -88,6 +88,9 @@ class Command(BaseCommand):
parser.add_argument(
"domain_statuses_filename", help="Data file with domain status information"
)
parser.add_argument(
"--loadExtraData", default=True, help="Determines if additional metadata should be applied"
)
parser.add_argument("--sep", default="|", help="Delimiter character")
@ -306,6 +309,7 @@ class Command(BaseCommand):
):
"""Parse the data files and create TransitionDomains."""
sep = options.get("sep")
load_extra_data = options.get("loadExtraData")
# If --resetTable was used, prompt user to confirm
# deletion of table data
@ -322,6 +326,9 @@ class Command(BaseCommand):
# print message to terminal about which args are in use
self.print_debug_mode_statements(debug_on, debug_max_entries_to_parse)
if load_extra_data:
# STEP 1:
# Create mapping of domain name -> status