How do I implement a null coalescing operator in SQLAlchemy?
How do I implement a null coalescing operator in SQLAlchemy? Question: Or how do I make this thing work? I have an Interval object: class Interval(Base): __tablename__ = ‘intervals’ id = Column(Integer, primary_key=True) start = Column(DateTime) end = Column(DateTime, nullable=True) task_id = Column(Integer, ForeignKey(‘tasks.id’)) @hybrid_property #used to just be @property def hours_spent(self): end = self.end …
Total answers: 4