fix: notification filtering

This commit is contained in:
pablohashescobar 2023-07-11 15:13:53 +05:30
parent 7554988164
commit 33e3354e4b

View File

@ -49,7 +49,7 @@ class NotificationViewSet(BaseViewSet):
if snoozed == "true":
notifications = notifications.filter(
snoozed_till__lt=timezone.now(),
Q(snoozed_till__lt=timezone.now()) | Q(snoozed_till__isnull=False)
)
# Filter for archived or unarchive