fixed file naming thingy

This commit is contained in:
2025-11-06 21:53:32 +13:00
parent 6d9a078656
commit 8f8e2c744d
9 changed files with 541 additions and 15 deletions
+8 -2
View File
@@ -56,7 +56,11 @@ class ScheduledTask(Base):
# Authentication
auth_state = Column(String(255), nullable=True)
# User-specific download options
upvoted = Column(Boolean, default=False, nullable=False)
saved = Column(Boolean, default=False, nullable=False)
# Relationships
executions = relationship("TaskExecutionHistory", back_populates="task", cascade="all, delete-orphan")
@@ -82,7 +86,9 @@ class ScheduledTask(Base):
"updated_at": self.updated_at.isoformat() if self.updated_at else None,
"last_run_at": self.last_run_at.isoformat() if self.last_run_at else None,
"next_run_at": self.next_run_at.isoformat() if self.next_run_at else None,
"auth_state": self.auth_state
"auth_state": self.auth_state,
"upvoted": getattr(self, 'upvoted', False),
"saved": getattr(self, 'saved', False)
}