From ee0727bfb309a307fc8e115f967d4aced2816cd9 Mon Sep 17 00:00:00 2001 From: jf Date: Sun, 4 Jun 2023 16:44:53 +0200 Subject: updated flask and flasgger --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'main.py') diff --git a/main.py b/main.py index 0313a25..258033a 100644 --- a/main.py +++ b/main.py @@ -34,7 +34,8 @@ def create_app(test_config=None): # Restful API hookup app.register_blueprint(rest_api.api_bp) - app.json_encoder = LazyJSONEncoder + app.json_provider_class = LazyJSONEncoder + app.json = LazyJSONEncoder(app) dirname = os.path.dirname(__file__) with open(os.path.join(dirname, 'matweb/oas/components.yml')) as file: -- cgit v1.3