forked from LeineLab-Public/lab-signal-bot
models: get_active_tasks()
This commit is contained in:
parent
76ec1c0923
commit
3e6f39ba86
@ -123,6 +123,8 @@ class Task(SQLModel, table=True):
|
||||
|
||||
return Ok(additional_requests)
|
||||
|
||||
def get_active_tasks(session: Session, now: datetime.datetime) -> List[Task]:
|
||||
return session.exec(select(Task).where(Task.due > now)).all()
|
||||
|
||||
class ParticipationState(enum.Enum):
|
||||
REQUESTED = "requested"
|
||||
|
Loading…
Reference in New Issue
Block a user