From 51124579269efc19d32d395edfa2ed806c392121 Mon Sep 17 00:00:00 2001 From: BryantHe Date: Thu, 21 Sep 2023 20:44:12 +0800 Subject: [PATCH] fix: adjust diet schema --- app/api/v1/schema/diet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/v1/schema/diet.py b/app/api/v1/schema/diet.py index afeb760..12b2e39 100644 --- a/app/api/v1/schema/diet.py +++ b/app/api/v1/schema/diet.py @@ -5,7 +5,7 @@ from apiflask import fields class DietRecordsIn(Schema): sort = fields.String() current_date = fields.String() - user_id = fields.String() + user_id = fields.String(allow_none=True) class heartOut(Schema):