From 2949110b9203138ce7d674fb8a68dacb706c1c69 Mon Sep 17 00:00:00 2001 From: Del Hyman-Jones Date: Fri, 13 Sep 2024 19:06:51 +0100 Subject: [PATCH] Update dependencies.py Fix an issue with adding the SQLAlchemy panel when using fastapi v0.114.1 --- debug_toolbar/dependencies.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/debug_toolbar/dependencies.py b/debug_toolbar/dependencies.py index a4469be..fe05942 100755 --- a/debug_toolbar/dependencies.py +++ b/debug_toolbar/dependencies.py @@ -17,9 +17,10 @@ async def get_dependencies(request: Request) -> dict[str, t.Any] | None: dependant=route.dependant, dependency_overrides_provider=route.dependency_overrides_provider, async_exit_stack=AsyncExitStack(), + embed_body_fields=False, ) except HTTPException: pass else: - return solved_result[0] + return solved_result.values return None