Skip to content

Commit

Permalink
#125 - fix duplicated to_dict in get_id_endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
louise-davies committed Jun 8, 2020
1 parent 3862d11 commit 755e85f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/resources/entities/entity_endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def get_id_endpoint(name, table):
class EndpointWithID(Resource):

def get(self, id):
return backend.get_with_id(get_session_id_from_auth_header(), table, id).to_dict(), 200
return backend.get_with_id(get_session_id_from_auth_header(), table, id), 200

get.__doc__ = f"""
---
Expand All @@ -161,7 +161,7 @@ def get(self, id):
parameters:
- in: path
required: true
name: ID
name: id
description: The id of the entity to retrieve
schema:
type: integer
Expand Down

0 comments on commit 755e85f

Please sign in to comment.