Skip to content

Commit

Permalink
Category query param for task_list (kevoreilly#2325)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangchen96 authored Sep 23, 2024
1 parent a0e9a77 commit 6eaf34d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions web/apiv2/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -793,6 +793,7 @@ def tasks_list(request, offset=None, limit=None, window=None):

status = request.query_params.get("status")
option = request.query_params.get("option")
category = request.query_params.get("category")

if offset:
offset = int(offset)
Expand All @@ -803,6 +804,7 @@ def tasks_list(request, offset=None, limit=None, window=None):
tasks = db.list_tasks(
limit=limit,
details=True,
category=category,
offset=offset,
completed_after=completed_after,
status=status,
Expand Down

0 comments on commit 6eaf34d

Please sign in to comment.