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

Commit

Permalink
artifact update
Browse files Browse the repository at this point in the history
  • Loading branch information
FultonBrowne committed Oct 5, 2019
1 parent 739ac53 commit 460d07c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Binary file modified bin/jar/Ara-Server.jar
Binary file not shown.
11 changes: 5 additions & 6 deletions src/main/java/com/andromeda/araserver/pages/apiStart.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public String apiMain(String mainUri) {
private String ParseApi(String search) {
//text to be outputted
String out;
String term = null;
String term;
//parse for search term
ArrayList<String> pairs = new ArrayList<>(Arrays.asList(search.split("&")));
term = pairs.get(0);
Expand Down Expand Up @@ -92,7 +92,7 @@ private String ParseApi(String search) {
linkval = linkval.replace(" ", "");
System.out.println(linkval);
String url = linkval;
URL obj = null;
URL obj;
String result;
try {
//get data from correct link
Expand All @@ -105,7 +105,7 @@ private String ParseApi(String search) {
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
StringBuilder response = new StringBuilder();

while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
Expand All @@ -122,18 +122,17 @@ private String ParseApi(String search) {
e.printStackTrace();
//print error msg
out = new Gson().toJson(outputModels);
result = "err";
}
//return the output
return out;
}

public void sqladd(Statement stmt, Connection c) throws SQLException {
/*public void sqladd(Statement stmt, Connection c) throws SQLException {
//this is for testing
String sql = "INSERT INTO SKILLS(start,endtxt,link) VALUES ('calculate','', 'https://araserver.herokuapp.com/math')";
stmt.executeUpdate(sql);
c.close();
}
}*/

private static Connection getConnection() throws SQLException {
//get a SQL connection (Note these creds are for test DB)
Expand Down

0 comments on commit 460d07c

Please sign in to comment.