Skip to content

Commit

Permalink
fixed homework api not working
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchharvey committed Mar 20, 2018
1 parent 7a6f37d commit a1aec48
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/com/mygcc/datacollection/Homework.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ private Map<String, Object> parseHomeworkHTML(final String raw)
gradeString = Arrays.stream(gradeString)
.filter(s -> (s != null && s.length() > 0))
.toArray(String[]::new);
if (StringUtils.isNumeric(gradeString[1])) {
gradeArray.put("received", gradeString[0]);
if (gradeString.length > 1) {
if (gradeString.length > 1) {
if (StringUtils.isNumeric(gradeString[1])) {
gradeArray.put("received", gradeString[0]);
gradeArray.put("points", gradeString[1]);
if (gradeString.length >= gradestringlength) {
gradeArray.put("letter", gradeString[2]);
Expand Down

0 comments on commit a1aec48

Please sign in to comment.