From e966635c09931fa9d5a50afc694074f39464d547 Mon Sep 17 00:00:00 2001 From: Parsa Nazer Date: Sat, 24 May 2025 22:36:55 +0330 Subject: [PATCH] fix bug notif --- backend/account/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/account/views.py b/backend/account/views.py index 4ceda49..18aa3d8 100644 --- a/backend/account/views.py +++ b/backend/account/views.py @@ -339,5 +339,5 @@ class NotificationListAPIView(APIView): serializer = self.serializer_class(paginated_notifs, many=True) return paginator.get_paginated_response(serializer.data) - def str_to_bool(val): - return True if val and val == 'true' else False + def str_to_bool(self, val): + return True if val and val == 'read' else False