now with a working countdowntimer for each dewar

This commit is contained in:
GotthardG
2024-11-20 22:37:18 +01:00
parent cacf43b631
commit db610da588
7 changed files with 162 additions and 82 deletions

View File

@ -277,17 +277,16 @@ class LogisticsEventCreate(BaseModel):
location_qr_code: str
transaction_type: str
class Slot(BaseModel):
class SlotSchema(BaseModel):
id: str
qr_code: str
label: str
qr_base: Optional[str]
occupied: bool
needs_refill: bool
last_refill: datetime
time_until_refill: int # Can't be Optional
dewar_unique_id: Optional[str] # Ensure this field exists
dewar: Optional[Dewar] = None # Add this field
dewar_unique_id: Optional[str]
dewar_name: Optional[str]
time_until_refill: Optional[int] # Ensure this field is defined
class Config:
from_attributes = True