only show notifications from last 2 weeks #352

Merged
philipp merged 1 commits from staging into main 2024-04-08 20:25:41 +02:00
2 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ WHERE
user_id = ?
AND (
read_at IS NULL
OR read_at >= datetime('now', '-30 days')
OR read_at >= datetime('now', '-14 days')
)
ORDER BY read_at DESC, created_at DESC;
",

View File

@ -39,7 +39,7 @@
{% endfor %}
</div>
<details class="py-3 bg-gray-200 dark:bg-primary-950 rounded-b-md">
<summary class="px-3">Vergangene Nachrichten</summary>
<summary class="px-3">Vergangene Nachrichten (14 Tage)</summary>
<div class="divide-y text-sm">
{% for notification in notifications %}
{% if notification.read_at %}