From a168c2aa7016bf768df48b6340016f232abf048b Mon Sep 17 00:00:00 2001 From: m c <458905+goatrocks@users.noreply.github.com> Date: Tue, 4 Jan 2022 09:52:12 -0500 Subject: [PATCH] add status into filter (#132) --- indico/filters/__init__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/indico/filters/__init__.py b/indico/filters/__init__.py index 99a80e14..b31a2e28 100644 --- a/indico/filters/__init__.py +++ b/indico/filters/__init__.py @@ -93,14 +93,16 @@ class DocumentReportFilter(Filter): __options__ = ("workflow_id", "submission_id", "status", "created_at_start_date", "created_at_end_date", "updated_at_start_date", "updated_at_end_date") - def __init__(self, submission_id: int = None, workflow_id: int = None, created_at_start_date: datetime = None, + def __init__(self, submission_id: int = None, workflow_id: int = None, status: str = None, created_at_start_date: datetime = None, created_at_end_date: datetime = None, updated_at_start_date: datetime = None, updated_at_end_date: datetime = None ): kwargs = { "workflowId": workflow_id, - "id": submission_id + "id": submission_id, + "status": status + } if created_at_start_date is not None and created_at_end_date is not None: