comment out strange command we may never use

This commit is contained in:
Kenneth Kehl
2024-10-02 14:11:47 -07:00
parent 05a6a2a4d9
commit 06643c3bb5

View File

@@ -162,28 +162,27 @@ def purge_functional_test_data(user_email_prefix):
# TODO maintainability what is the purpose of this command? Who would use it and why? # TODO maintainability what is the purpose of this command? Who would use it and why?
# COMMENTING OUT UNTIL WE DETERMINE IF WE NEED IT OR NOT @notify_command(name="insert-inbound-numbers")
# @notify_command(name="insert-inbound-numbers") @click.option(
# @click.option( "-f",
# "-f", "--file_name",
# "--file_name", required=True,
# required=True, help="""Full path of the file to upload, file is a contains inbound numbers, one number per line.""",
# help="""Full path of the file to upload, file is a contains inbound numbers, one number per line.""", )
# ) def insert_inbound_numbers_from_file(file_name):
# def insert_inbound_numbers_from_file(file_name):
# current_app.logger.info(f"Inserting inbound numbers from {file_name}") current_app.logger.info(f"Inserting inbound numbers from {file_name}")
# with open(file_name) as file: with open(file_name) as file:
# sql = text( sql = text(
# "insert into inbound_numbers values(:uuid, :line, 'sns', null, True, now(), null);" "insert into inbound_numbers values(:uuid, :line, 'sns', null, True, now(), null);"
# ) )
# for line in file: for line in file:
# line = line.strip() line = line.strip()
# if line: if line:
# current_app.logger.info(line) current_app.logger.info(line)
# db.session.execute(sql, {"uuid": str(uuid.uuid4()), "line": line}) db.session.execute(sql, {"uuid": str(uuid.uuid4()), "line": line})
# db.session.commit() db.session.commit()
def setup_commands(application): def setup_commands(application):