def approve_obj_review(obj): """Returns obj with approved review.""" rest_review = get_obj_review(obj) rest_service.ReviewService().update_obj( obj=rest_review, status=element.ReviewStates.REVIEWED) return obj.update_attrs(review=entities_factory.ReviewsFactory().create( status=element.ReviewStates.REVIEWED, reviewers=users.current_user(), last_reviewed_by=users.current_user().email, last_reviewed_at=date_utils.iso8601_to_ui_str_with_zone( rest_review.last_reviewed_at)))
def get_last_review_date(obj): """Get last review date as string in (mm/dd/yyyy hh:mm:ss AM/PM) format.""" return date_utils.iso8601_to_ui_str_with_zone( get_obj_review(obj).last_reviewed_at)
def get_last_review_date(obj): """Get last review date as string in (mm/dd/yyyy hh:mm:ss AM/PM) format.""" return date_utils.iso8601_to_ui_str_with_zone( get_obj_review(obj).last_reviewed_at)