added some docstrings
parent
db1c1ffee8
commit
a69a262e87
|
@ -1,3 +1,5 @@
|
||||||
|
"""Define the API that will support Mycroft single sign on (SSO)."""
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from flask import Flask, request
|
from flask import Flask, request
|
||||||
|
@ -48,4 +50,5 @@ sso.after_request(add_cors_headers)
|
||||||
|
|
||||||
@sso.teardown_appcontext
|
@sso.teardown_appcontext
|
||||||
def close_db_connections():
|
def close_db_connections():
|
||||||
|
"""Close all pool connections when the app is terminated"""
|
||||||
sso.config['DB_CONNECTION_POOL'].close_all()
|
sso.config['DB_CONNECTION_POOL'].close_all()
|
||||||
|
|
Loading…
Reference in New Issue