Skip to content
This repository has been archived by the owner on Oct 3, 2020. It is now read-only.

Commit

Permalink
fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
FultonBrowne committed Oct 12, 2019
1 parent cc1dad3 commit edc0c40
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Binary file modified bin/jar/Ara-Server.jar
Binary file not shown.
7 changes: 4 additions & 3 deletions src/main/java/com/andromeda/araserver/pages/ApiStart.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,10 @@ private String ParseApi(String search) {
System.out.println(search.startsWith(sqlModel.description));

assert term != null;
if (search.startsWith(sqlModel.description)) {
if (search.startsWith(sqlModel.description) || search.equals(sqlModel.description)) {
System.out.println("Hiiiiiiii");
linkval = sqlModel.link + "/" + search.replace(sqlModel.description, "");
System.out.println(linkval);
break;
}
if (!"".equals(sqlModel.title) && term.endsWith(sqlModel.title)) {
Expand All @@ -88,8 +90,7 @@ private String ParseApi(String search) {
}
}
// parse to avoid errors
if (linkval != null && linkval.contains(" "));
else linkval = "https://araserver.herokuapp.com/searcht/" + search;
if (linkval == null) linkval = "https://araserver.herokuapp.com/searcht/" + search;
linkval = linkval.replace(" ", "");
System.out.println(linkval);
String url = linkval;
Expand Down

0 comments on commit edc0c40

Please sign in to comment.