Skip to content

Commit

Permalink
add status into filter (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
goatrocks authored Jan 4, 2022
1 parent 34a4236 commit a168c2a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions indico/filters/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a168c2a

Please sign in to comment.