Update app/commands.py

Co-authored-by: Carlo Costino <ccostino@users.noreply.github.com>
This commit is contained in:
Anastasia Gradova
2024-03-04 15:59:44 -07:00
committed by GitHub
parent ee6dfacad1
commit 6cf9c811ae

View File

@@ -859,6 +859,9 @@ fake = Faker(["en_US"])
@notify_command(name="add-test-organizations-to-db")
@click.option("-g", "--generate", required=True, prompt=True, default=1)
def add_test_organizations_to_db(generate):
if getenv("NOTIFY_ENVIRONMENT", "") not in ["development", "test"]:
current_app.logger.error("Can only be run in development")
return
def generate_gov_agency():
agency_names = [
"Bureau",