add flask command sco_database_uri

This commit is contained in:
Jean-Marie Place 2021-10-03 08:22:38 +02:00 committed by Jean-Marie Place
parent 5ac5f5eb19
commit f619dfec36
1 changed files with 7 additions and 0 deletions

View File

@ -274,6 +274,13 @@ def list_depts(depts=""): # list-dept
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()
@with_appcontext
def import_scodoc7_users(): # import-scodoc7-users