fix (tasklist): Task limit ignores expired tasks.

This commit is contained in:
2021-09-23 21:04:20 +03:00
parent 4a0670db65
commit a393490f77

View File

@@ -458,7 +458,8 @@ class Tasklist:
# Fetch accurate count of current tasks # Fetch accurate count of current tasks
count = data.tasklist.select_one_where( count = data.tasklist.select_one_where(
select_columns=("COUNT(*)",), select_columns=("COUNT(*)",),
userid=self.member.id userid=self.member.id,
_extra="AND last_updated_at > timezone('utc', NOW()) - INTERVAL '24h'"
)[0] )[0]
# Fetch maximum allowed count # Fetch maximum allowed count