Sec. 8. If the application is denied in whole or part, the applicant may appeal under Article 44.02 and Rule 31, Texas Rules of Appellate Procedure. If the application is granted in whole or part, the state may appeal under Article 44.01 and Rule 31, Texas Rules of Appellate Procedure.