Skip to content

Commit

Permalink
Allow empty list to be returned. (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevgliss committed May 11, 2018
1 parent 07ab735 commit c14146e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion diffy_api/tasks/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ def get(self):
:statuscode 403: unauthenticated
"""
queue = rq.get_queue()
return queue.get_jobs()
data = queue.get_jobs()
return data, 200


class Task(Resource):
Expand Down

0 comments on commit c14146e

Please sign in to comment.