From fc24b05b7da3f4393d94ffc9b5e88f6f685b1113 Mon Sep 17 00:00:00 2001 From: Patrick Huck Date: Wed, 11 Jan 2023 16:36:59 -0800 Subject: [PATCH] client: return list also for single project --- mpcontribs-client/mpcontribs/client/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mpcontribs-client/mpcontribs/client/__init__.py b/mpcontribs-client/mpcontribs/client/__init__.py index e6b170d52..c4a99e3bd 100644 --- a/mpcontribs-client/mpcontribs/client/__init__.py +++ b/mpcontribs-client/mpcontribs/client/__init__.py @@ -776,7 +776,7 @@ def query_projects( query = query or {} if self.project or "name" in query: - return self.get_project(name=query.get("name"), fields=fields) + return [self.get_project(name=query.get("name"), fields=fields)] if term: def search_future(search_term):