From 4ab3e0c31b009125d03072adacabb221d4d2f78e Mon Sep 17 00:00:00 2001 From: andrew Date: Fri, 20 Oct 2023 18:28:23 -0400 Subject: [PATCH] Drop extra JSON layer on Config API responses No need to wrap in 'config' : {} --- OpenBench/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenBench/views.py b/OpenBench/views.py index 503b3ef..b3e7694 100644 --- a/OpenBench/views.py +++ b/OpenBench/views.py @@ -786,7 +786,7 @@ def api_configs(request, engine=None): return api_response({ 'engines' : engines, 'books' : books }) if engine in OPENBENCH_CONFIG['engines'].keys(): - return api_response({ 'config' : OPENBENCH_CONFIG['engines'][engine] }) + return api_response(OPENBENCH_CONFIG['engines'][engine]) return api_response({ 'error' : 'Engine not found. Check /api/config/ for a full list' })