From fb5e930096d53bd21b28f011e5b6c78f9b2136fb Mon Sep 17 00:00:00 2001 From: GotthardG <51994228+GotthardG@users.noreply.github.com> Date: Wed, 8 Jan 2025 16:59:46 +0100 Subject: [PATCH] Refactor set_tell_positions logic with updated rules. Revised the set_tell_positions endpoint to handle updated business rules for puck positioning. Improved event handling to ensure proper nullification, updates, and removal of tell_positions based on the provided payload. Enhanced query performance and normalized puck name processing for consistency. --- backend/app/schemas.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/app/schemas.py b/backend/app/schemas.py index ea63701..fd2d88e 100644 --- a/backend/app/schemas.py +++ b/backend/app/schemas.py @@ -645,7 +645,8 @@ class PuckWithTellPosition(BaseModel): puck_type: str puck_location_in_dewar: Optional[str] dewar_id: int - samples: List[Sample] + samples: Optional[List[Sample]] = None + tell_position: Optional[str] class Config: from_attributes = True