mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 07:35:34 -05:00
Update app/commands.py
Co-authored-by: Carlo Costino <ccostino@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
ee6dfacad1
commit
6cf9c811ae
@@ -859,6 +859,9 @@ fake = Faker(["en_US"])
|
|||||||
@notify_command(name="add-test-organizations-to-db")
|
@notify_command(name="add-test-organizations-to-db")
|
||||||
@click.option("-g", "--generate", required=True, prompt=True, default=1)
|
@click.option("-g", "--generate", required=True, prompt=True, default=1)
|
||||||
def add_test_organizations_to_db(generate):
|
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():
|
def generate_gov_agency():
|
||||||
agency_names = [
|
agency_names = [
|
||||||
"Bureau",
|
"Bureau",
|
||||||
|
|||||||
Reference in New Issue
Block a user