Skip to content
Snippets Groups Projects
Commit 958be456 authored by Christopher Schankula's avatar Christopher Schankula :earth_africa:
Browse files

fix string format

parent fcc30f3d
No related branches found
No related tags found
No related merge requests found
......@@ -61,7 +61,7 @@ public class WormsAPI {
public static int fuzzyNameToID(String fuzzyName) throws IOException {
fuzzyName = repSpaces(fuzzyName);
String resp = makeRequest(String.format(
"http://marinespecies.org/rest/AphiaRecordsByMatchNames?scientificnames%5B%5D=%s&marine_only=true",
"http://marinespecies.org/rest/AphiaRecordsByMatchNames?scientificnames%%5B%%5D=%s&marine_only=true",
fuzzyName));
// TODO: finish this function.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment