The presumptive sentence for a person who has never before been convicted of a felony, but has now been convicted of a class D or E felony or convicted of an attempt to commit a class D felony shall be probation, unless the conviction is of a crime or of an attempt to commit a crime specified in article 34, 35 or 36 of chapter 21 of Kansas Statutes Annotated, prior to their repeal, or in the uniform controlled substances act or the person convicted is a juvenile offender in the custody of the Kansas department for children and families. In determining whether to impose the presumptive sentence, the court shall consider any prior record of the person's having been convicted or having been adjudicated to have committed, while a juvenile, an offense which would constitute a felony if committed by an adult. If the presumptive sentence provided by this section is not imposed, the provisions of K.S.A. 21-6709, and amendments thereto, shall apply. The provisions of this section shall not apply to crimes committed on or after July 1, 1993.
K.S.A. 21-6708