dev: reverse logic for archive filtering

This commit is contained in:
pablohashescobar 2023-07-11 15:40:08 +05:30
parent 33e3354e4b
commit 7b2212ea91

View File

@ -53,10 +53,10 @@ class NotificationViewSet(BaseViewSet):
)
# Filter for archived or unarchive
if archived == "true":
if archived == "false":
notifications = notifications.filter(archived_at__isnull=True)
if archived == "false":
if archived == "true":
notifications = notifications.filter(archived_at__isnull=False)
# Subscribed issues