(self, comment_id, comment)
return False
Update an existing comment.

        Args:
            comment: Comment object with updated comment text.
Update an existing comment.
Update an existing comment .
def update_comment(self, comment_id, comment):
        """Update an existing comment.

        Args:
            comment: Comment object with updated comment text.
        """
        for comment_obj in self.comments:
            if comment_obj.id == int(comment_id):
                comment_obj.comment = comment
                db_session.commit()
                return comment_obj

        return False
def update_comment ( self , comment_id , comment ) : for comment_obj in self . comments : if comment_obj . id == int ( comment_id ) : comment_obj . comment = comment db_session . commit ( ) return comment_obj return False