now with a working countdowntimer for each dewar
This commit is contained in:
@ -156,6 +156,5 @@ class LogisticsEvent(Base):
|
||||
slot_id = Column(Integer, ForeignKey('slots.id')) # corrected table name
|
||||
event_type = Column(String, index=True)
|
||||
timestamp = Column(DateTime, default=datetime.utcnow)
|
||||
action_details = Column(String)
|
||||
dewar = relationship("Dewar", back_populates="events")
|
||||
slot = relationship("Slot", back_populates="events")
|
@ -103,7 +103,6 @@ async def refill_dewar(qr_code: str, db: Session = Depends(get_db)):
|
||||
slot_id=None,
|
||||
event_type="refill",
|
||||
timestamp=now,
|
||||
action_details=f"{dewar.unique_id} refilled"
|
||||
)
|
||||
db.add(new_event)
|
||||
db.commit()
|
||||
|
Reference in New Issue
Block a user