versions/v2/review.py
def delete_review(current_user, businessId, reviewId):
    """Delete a Review given a review ID and business ID
    confirms if current_user is owner of review
    """
    title = ''
    review = Review.query.get(reviewId)
    if review:
        title = review.title
        review.delete()

    if not db.session.query(
        db.exists().where(Review.title == title)
    ).scalar():
        return jsonify({'success': 'Review Deleted'}), 200

    return jsonify({'warning': 'Review Not Deleted'}), 400
Delete a Review given a review ID and business ID
    confirms if current_user is owner of review
    
Delete a Review given a review ID and business ID
confirms if current_user is owner of review
Delete a Review given a review ID and business ID confirms if current_user is owner of review
def delete_review(current_user, businessId, reviewId):
    title = ''
    review = Review.query.get(reviewId)
    if review:
        title = review.title
        review.delete()
    if not db.session.query(
        db.exists().where(Review.title == title)
    ).scalar():
        return jsonify({'success': 'Review Deleted'}), 200
    return jsonify({'warning': 'Review Not Deleted'}), 400
def delete_review ( current_user , businessId , reviewId ) : title = '' review = Review . query . get ( reviewId ) if review : title = review . title review . delete ( ) if not db . session . query ( db . exists ( ) . where ( Review . title == title ) ) . scalar ( ) : return jsonify ( { 'success' : 'Review Deleted' } ) , 200 return jsonify ( { 'warning' : 'Review Not Deleted' } ) , 400
Delete a Review given a review ID and business ID
confirms if current_user is owner of review
Delete a Review given a review ID and business ID confirms if current_user is owner of review
"""Delete a Review given a review ID and business ID
    confirms if current_user is owner of review
    """
current_user
businessId
reviewId