allow config dictionary as argument to make_config; disable CRLs for scripts
This commit is contained in:
@@ -153,7 +153,7 @@ def remove_sample_data(all_users=False):
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
config = make_config()
|
||||
config = make_config({"DISABLE_CRL_CHECK": True})
|
||||
app = make_app(config)
|
||||
with app.app_context():
|
||||
remove_sample_data()
|
||||
|
@@ -31,7 +31,7 @@ def seed_roles():
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
config = make_config()
|
||||
config = make_config({"DISABLE_CRL_CHECK": True})
|
||||
app = make_app(config)
|
||||
with app.app_context():
|
||||
seed_roles()
|
||||
|
@@ -163,7 +163,7 @@ def seed_db():
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
config = make_config()
|
||||
config = make_config({"DISABLE_CRL_CHECK": True})
|
||||
app = make_app(config)
|
||||
with app.app_context():
|
||||
seed_db()
|
||||
|
Reference in New Issue
Block a user