Correct code snippet (#316)

This commit is contained in:
pollfly 2022-08-17 10:24:09 +03:00 committed by GitHub
parent e303927d9d
commit 8faaf04be3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -218,7 +218,9 @@ task_list = Task.get_tasks(
task_ids=None, # type Optional[Sequence[str]] task_ids=None, # type Optional[Sequence[str]]
project_name=None, # Optional[str] project_name=None, # Optional[str]
task_name=None, # Optional[str] task_name=None, # Optional[str]
task_filter=None # Optional[Dict] task_filter=None, # Optional[Dict]#
# tasks with tag `included_tag` and without tag `excluded_tag`
tags=['included_tag', '-excluded_tag']
) )
``` ```
@ -227,8 +229,6 @@ It's possible to also filter tasks by passing filtering rules to `task_filter`.
For example: For example:
```python ```python
task_filter={ task_filter={
# only tasks with tag `included_tag` and without tag `excluded_tag`
'tags': ['included_tag', '-excluded_tag'],
# filter out archived tasks # filter out archived tasks
'system_tags': ['-archived'], 'system_tags': ['-archived'],
# only completed & published tasks # only completed & published tasks