now with a working countdowntimer for each dewar
This commit is contained in:
@ -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
|
Reference in New Issue
Block a user