From ba55f8a00a802d8615bc41d9c9ddbecddcb3a7af Mon Sep 17 00:00:00 2001 From: jableader Date: Mon, 20 May 2024 21:50:04 +1000 Subject: [PATCH] Created by id is optional when creating recipes --- recipes/db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/db.py b/recipes/db.py index ab4bca8..1ec524d 100644 --- a/recipes/db.py +++ b/recipes/db.py @@ -19,7 +19,7 @@ class Recipe(BaseModel): based_on_recipe: Optional[int] = None date_created: datetime.datetime = datetime.datetime.now() - created_by_id: int + created_by_id: Optional[int] created_by: Optional[Person] = None date_hidden: Optional[datetime.datetime] = None