now with a working countdowntimer for each dewar

This commit is contained in:
GotthardG
2024-11-21 13:18:58 +01:00
parent db610da588
commit c7e6c0390e
4 changed files with 56 additions and 11 deletions

View File

@ -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")

View File

@ -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()