(self, user_id)
Marks as read the notifications of user.
Marks as read the notifications of user.
Marks as read the notifications of user .
def mark_as_read(self, user_id):
        """
        Marks as read the notifications of user.
        """
        self.collection.update(
            {"recipient": user_id, "is_read": False},
            {"$set": {"is_read": True}}, multi=True)
def mark_as_read ( self , user_id ) : self . collection . update ( { "recipient" : user_id , "is_read" : False } , { "$set" : { "is_read" : True } } , multi = True )