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

Commit

Permalink
perfected the link generator
Browse files Browse the repository at this point in the history
  • Loading branch information
fulton committed Nov 23, 2019
1 parent 9dceae5 commit bb18819
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/andromeda/araserver/pages/ApiStart.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public String apiMain(String mainUri, KeyWord keyWord, Parser parse) {
String term = pairs.get(0);


return new MsSql().getSkills(term, keyWord, parse);//ParseApi(searchterm);
return new MsSql().getSkills(term, searchterm, keyWord, parse);//ParseApi(searchterm);
}

private String ParseApi(String search) {
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/andromeda/araserver/util/MsSql.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class MsSql {
userName,
password
)
fun getSkills(phrase:String, keyWord: KeyWord, parse: Parser): String {
fun getSkills(phrase:String,fullDir:String, keyWord: KeyWord, parse: Parser): String {
Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
var connection: Connection? = null
val phrases = SortWords(keyWord = keyWord, mainVal = phrase).getTopics(parse = parse)
Expand All @@ -43,7 +43,7 @@ class MsSql {
}


return URL(link).readText()
return URL("$link/$fullDir".replace(" ", "%20")).readText()

}
}

0 comments on commit bb18819

Please sign in to comment.