only show notifications from last 2 weeks
All checks were successful
CI/CD Pipeline / test (push) Successful in 11m35s
CI/CD Pipeline / deploy-staging (push) Successful in 5m38s
CI/CD Pipeline / deploy-main (push) Has been skipped

This commit is contained in:
philipp 2024-04-08 20:25:13 +02:00
parent 64d32e2688
commit 39d410b050
2 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ WHERE
user_id = ? user_id = ?
AND ( AND (
read_at IS NULL 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; ORDER BY read_at DESC, created_at DESC;
", ",

View File

@ -39,7 +39,7 @@
{% endfor %} {% endfor %}
</div> </div>
<details class="py-3 bg-gray-200 dark:bg-primary-950 rounded-b-md"> <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"> <div class="divide-y text-sm">
{% for notification in notifications %} {% for notification in notifications %}
{% if notification.read_at %} {% if notification.read_at %}