From 5213a827dc243e0aadf83989d8dd0fe1485b92ed Mon Sep 17 00:00:00 2001 From: James Ravenscroft Date: Sat, 22 Oct 2022 14:30:26 +0100 Subject: [PATCH] don't load yaml --- src/microcosm/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/microcosm/__init__.py b/src/microcosm/__init__.py index 7366ead..e710181 100644 --- a/src/microcosm/__init__.py +++ b/src/microcosm/__init__.py @@ -37,14 +37,14 @@ def create_app(): app = Flask(__name__) app.config['SECRET_KEY'] = 'my super secret key' - app.config.from_file(os.path.join(os.getcwd(), "config.yaml"), yaml.safe_load) + #app.config.from_file(os.path.join(os.getcwd(), "config.yaml"), yaml.safe_load) from .indieauth import micropub, auth_bp from .webmentions import webhook_bp print(app.config) - micropub.init_app(app, app.config['INDIEAUTH']['client_id']) + micropub.init_app(app, app.config.get('INDIEAUTH_CLIENT_ID', 'test.com')) app.register_blueprint(auth_bp) app.register_blueprint(core_bp)