Tidied and improved JSON representations

This commit is contained in:
jtc42 2019-11-15 16:51:48 +00:00
parent d79fd55301
commit 0907d013cd
6 changed files with 10 additions and 19 deletions

View file

@ -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