fix bug notif

This commit is contained in:
Parsa Nazer
2025-05-24 22:36:55 +03:30
parent 3c098575dc
commit e966635c09
+2 -2
View File
@@ -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