add flask command sco_database_uri
This commit is contained in:
parent
5ac5f5eb19
commit
f619dfec36
|
@ -274,6 +274,13 @@ def list_depts(depts=""): # list-dept
|
||||||
print(f"{dept.id}\t{dept.acronym}")
|
print(f"{dept.id}\t{dept.acronym}")
|
||||||
|
|
||||||
|
|
||||||
|
@app.cli.command()
|
||||||
|
def scodoc_database_uri(): # list-dept
|
||||||
|
"""print the database_uril
|
||||||
|
"""
|
||||||
|
print(app.config["SQLALCHEMY_DATABASE_URI"])
|
||||||
|
|
||||||
|
|
||||||
@app.cli.command()
|
@app.cli.command()
|
||||||
@with_appcontext
|
@with_appcontext
|
||||||
def import_scodoc7_users(): # import-scodoc7-users
|
def import_scodoc7_users(): # import-scodoc7-users
|
||||||
|
|
Loading…
Reference in New Issue
Block a user