From d53a253c8d5f4be4854061baf8b106378313926d Mon Sep 17 00:00:00 2001 From: Beau Barker Date: Sun, 17 May 2020 20:14:14 +1000 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Update=20location=20of=20get=5Fd?= =?UTF-8?q?b=20in=20SQL=20docs=20(#1293)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs_src/sql_databases/sql_app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs_src/sql_databases/sql_app/main.py b/docs_src/sql_databases/sql_app/main.py index 33f63d332..e7508c59d 100644 --- a/docs_src/sql_databases/sql_app/main.py +++ b/docs_src/sql_databases/sql_app/main.py @@ -13,8 +13,8 @@ app = FastAPI() # Dependency def get_db(): + db = SessionLocal() try: - db = SessionLocal() yield db finally: db.close()