Skip to content

Commit

Permalink
Add: exclude_task_status to taskFilter
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Neznaykin committed May 25, 2021
1 parent 36f57d5 commit 716a84d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tdapi/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,12 @@ type TaskFilter struct {
//* ?sort = [ "created" | "-created" | "last_message" | "-last_message" | "deadline" | "-deadline" ]
Sort string `schema:"sort"`

//* ?task_status = ["new" | "done" ]
//* ?task_status = new,done | new | any
TaskStatus string `schema:"task_status"`

//* ?exclude_task_status = new,done | new | any
ExcludeTaskStatus string `schema:"exclude_task_status"`

//* ?num=num1,num2,num3...
Num string `schema:"num"`

Expand All @@ -48,7 +51,7 @@ type TaskFilter struct {
Owner string `schema:"owner"`

//* ?section=[ uid,uid... | "-" ]
Section string `schema:"section"`
Section string `schema:"section"` // TODO: rename to ?project=

//* ?tag=[ tag,tag,tag... | "-" ]
Tag string `schema:"tag"`
Expand Down

0 comments on commit 716a84d

Please sign in to comment.