From a69a262e874d34ae2b743e8ee6f66af63cf4f503 Mon Sep 17 00:00:00 2001 From: Chris Veilleux Date: Wed, 30 Jan 2019 23:20:40 -0600 Subject: [PATCH] added some docstrings --- api/sso/sso_api/api.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/sso/sso_api/api.py b/api/sso/sso_api/api.py index 4e8f1d41..3ca8e854 100644 --- a/api/sso/sso_api/api.py +++ b/api/sso/sso_api/api.py @@ -1,3 +1,5 @@ +"""Define the API that will support Mycroft single sign on (SSO).""" + import os from flask import Flask, request @@ -48,4 +50,5 @@ sso.after_request(add_cors_headers) @sso.teardown_appcontext def close_db_connections(): + """Close all pool connections when the app is terminated""" sso.config['DB_CONNECTION_POOL'].close_all()