changed index from 1 to 0

This commit is contained in:
Zastian Pretorius
2022-08-08 22:50:19 +01:00
parent 84aa95aa6e
commit 77415b22b4

View File

@@ -133,7 +133,7 @@ pub fn get_user_anime_progress(anime_id: i32, token: &str) -> i32 {
let regex = regex::Regex::new(r#"progress":(.*?)}"#).unwrap();
let resp: String = resp.as_ref().unwrap().to_string();
if resp.contains("errors") {
1
0
} else {
let progress = regex
.captures(&resp)