From 3d6f03c700547465886171f96d36cf90f16db2f5 Mon Sep 17 00:00:00 2001 From: "Teal (P&B)" <87190689+teal-pb@users.noreply.github.com> Date: Tue, 5 Apr 2022 12:21:08 +0200 Subject: [PATCH] Add `term` parameter to `Company.getlist` As per https://github.com/hundertzehn/mocoapp-api-docs/pull/180 --- moco_wrapper/models/company.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/moco_wrapper/models/company.py b/moco_wrapper/models/company.py index 0ef5d33..9128979 100644 --- a/moco_wrapper/models/company.py +++ b/moco_wrapper/models/company.py @@ -348,6 +348,7 @@ def get( def getlist( self, company_type: CompanyType = None, + term: str = None, tags: list = None, identifier: str = None, sort_by: str = None, @@ -358,6 +359,7 @@ def getlist( Get a list of company objects. :param company_type: Type of company to filter for (default ``None``) + :param term: Term to search for (default ``None``) :param tags: List of tags (default ``None``) :param identifier: Company identifier (default ``None``) :param sort_by: Field to sort by (default ``None``) @@ -378,6 +380,7 @@ def getlist( params = {} for key, value in ( ("type", company_type), + ("term", term), ("tags", tags), ("identifier", identifier), ("page", page)