From b0400cc617c2ac97323293b001b7e45262c5b005 Mon Sep 17 00:00:00 2001 From: BryantHe Date: Sat, 12 Aug 2023 20:34:25 +0800 Subject: [PATCH] feat: add api of body record 6 --- app/api/v1/record.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/api/v1/record.py b/app/api/v1/record.py index bc181db..b037f6c 100644 --- a/app/api/v1/record.py +++ b/app/api/v1/record.py @@ -42,7 +42,7 @@ def get_record(record_id): @login_required def get_records(): try: - result = rpc.body_record.get_all_by_user(session['user_id']) + results = rpc.body_record.get_all_by_user(session['user_id']) except Exception as e: raise BodyRecordNotFound() - return result + return {'records': results}