Tidied and improved JSON representations
This commit is contained in:
parent
d79fd55301
commit
0907d013cd
6 changed files with 10 additions and 19 deletions
|
|
@ -121,7 +121,7 @@ class TaskAPI(MethodView):
|
|||
"""
|
||||
|
||||
try:
|
||||
task = tasks.tasks()[task_id]
|
||||
task = tasks_representation()[task_id]
|
||||
except KeyError:
|
||||
return abort(404) # 404 Not Found
|
||||
|
||||
|
|
@ -140,7 +140,7 @@ class TaskAPI(MethodView):
|
|||
"""
|
||||
|
||||
try:
|
||||
task = tasks.tasks()[task_id]
|
||||
task = tasks_representation()[task_id]
|
||||
except KeyError:
|
||||
return abort(404) # 404 Not Found
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue