def map_calculated_scores_to_user(predictions, user):
    """
    This function replaces the previous scores (only 0's in production) with the computed scores)
    :param predictions: the list of prediction-scores
    :param user: the user with its (original) scores
    :return: the user with its new scores
    """
    for row in predictions:
        user.scores[row[0]] = row[1]
    return user