From faa21df651e708ec766ca3fede82cf399e3164f5 Mon Sep 17 00:00:00 2001 From: Alice Butcher Date: Wed, 3 Jan 2024 11:28:18 +0000 Subject: [PATCH] fix: add default value for q --- ckanext/attribution/logic/actions/show.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ckanext/attribution/logic/actions/show.py b/ckanext/attribution/logic/actions/show.py index 380e69a..96b397d 100644 --- a/ckanext/attribution/logic/actions/show.py +++ b/ckanext/attribution/logic/actions/show.py @@ -35,7 +35,7 @@ def agent_show(original_data_dict): @action(schema.agent_list, help.agent_list, get=True) -def agent_list(q, mode='normal'): +def agent_list(q=None, mode='normal'): if q is not None and q != '': q_string = '{0}%'.format(q) name_cols = [