Skip to content

Commit

Permalink
properly decode json-encoded examorg_long
Browse files Browse the repository at this point in the history
  • Loading branch information
greybaron committed Aug 13, 2024
1 parent 78cd19e commit 134721a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ pub async fn get_examdetails(
.await?
.error_for_status();
match resp {
Ok(resp) => resp.text().await?.replace('"', ""),
Ok(resp) => serde_json::from_str(&resp.text().await?)?,
Err(_) => exam_details.ev_examorg_text.clone(),
}
};
Expand Down

0 comments on commit 134721a

Please sign in to comment.