From 755e85fde9cef703810b82f396ab7f83d8fcea85 Mon Sep 17 00:00:00 2001 From: Louise Davies Date: Mon, 8 Jun 2020 10:05:20 +0100 Subject: [PATCH] #125 - fix duplicated `to_dict` in get_id_endpoint --- src/resources/entities/entity_endpoint.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/resources/entities/entity_endpoint.py b/src/resources/entities/entity_endpoint.py index 2cde0954..1bdc7d58 100644 --- a/src/resources/entities/entity_endpoint.py +++ b/src/resources/entities/entity_endpoint.py @@ -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""" --- @@ -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