From fe5acf424dd66791322fe590f5c16c115ee17792 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maria=20=C3=96hrman?= Date: Tue, 6 Feb 2024 15:47:08 +0100 Subject: [PATCH] fix resource list in CLI --- karp-backend/src/karp/cliapp/subapps/resource_subapp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/karp-backend/src/karp/cliapp/subapps/resource_subapp.py b/karp-backend/src/karp/cliapp/subapps/resource_subapp.py index 59bf3e3e..89b60e79 100644 --- a/karp-backend/src/karp/cliapp/subapps/resource_subapp.py +++ b/karp-backend/src/karp/cliapp/subapps/resource_subapp.py @@ -137,7 +137,7 @@ def list_resources( # noqa: ANN201, D103 tabulate( [ [resource.resource_id, resource.version, resource.is_published] - for resource in query.query() + for resource in result ], headers=["resource_id", "version", "published"], )