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.
This commit is contained in:
parent
3e2c1df88f
commit
fb5e930096
@ -645,7 +645,8 @@ class PuckWithTellPosition(BaseModel):
|
|||||||
puck_type: str
|
puck_type: str
|
||||||
puck_location_in_dewar: Optional[str]
|
puck_location_in_dewar: Optional[str]
|
||||||
dewar_id: int
|
dewar_id: int
|
||||||
samples: List[Sample]
|
samples: Optional[List[Sample]] = None
|
||||||
|
tell_position: Optional[str]
|
||||||
|
|
||||||
class Config:
|
class Config:
|
||||||
from_attributes = True
|
from_attributes = True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user