diff --git a/app/api/v1/record.py b/app/api/v1/record.py index b519010..07d5238 100644 --- a/app/api/v1/record.py +++ b/app/api/v1/record.py @@ -74,7 +74,7 @@ def get_records(query_data): current_date=current_date) except Exception as e: raise BodyRecordNotFound(extra_data={'error_docs': str(e)}) - return {'records': results} + return results @record.get('/chart') diff --git a/app/api/v1/schema/record.py b/app/api/v1/schema/record.py index dc70481..83c778f 100644 --- a/app/api/v1/schema/record.py +++ b/app/api/v1/schema/record.py @@ -32,6 +32,8 @@ class BodyRecordsIn(Schema): class BodyRecordsOut(Schema): records = fields.List(fields.Nested(BodyRecordOut)) + previous_date = fields.String() + next_date = fields.String() class BodyRecordChartIn(Schema):