Compare commits

...

2 Commits

Author SHA1 Message Date
23cd62820c Merge pull request 'only show notifications from last 2 weeks' (#352) from staging into main
All checks were successful
CI/CD Pipeline / test (push) Successful in 11m37s
CI/CD Pipeline / deploy-staging (push) Has been skipped
CI/CD Pipeline / deploy-main (push) Successful in 5m19s
Reviewed-on: #352
2024-04-08 20:25:37 +02:00
39d410b050 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
2024-04-08 20:25:13 +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 %}