now associating a dewar to a slot

This commit is contained in:
GotthardG
2024-11-19 13:43:54 +01:00
parent 48fd2c3a7c
commit fa1e9c86b8
4 changed files with 41 additions and 18 deletions

View File

@ -281,11 +281,13 @@ class Slot(BaseModel):
id: str
qr_code: str
label: str
qr_base: str
qr_base: Optional[str]
occupied: bool
needs_refill: bool
last_refill: datetime
time_until_refill: str
time_until_refill: int # Can't be Optional
dewar_unique_id: Optional[str] # Ensure this field exists
dewar_name: Optional[str] = None # Optional for convenience
class Config:
from_attributes = True