Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

5130 Pull votes in from amendments on bill pages.

  • Loading branch information...
commit 30cbdd1b08ec2aafe77fa257638336c1b8abbf1c 1 parent c79d461
@GraylinKim GraylinKim authored
View
2  src/main/java/gov/nysenate/openleg/api/SingleViewRequest.java
@@ -68,7 +68,7 @@ public void fillRequest() throws ApiRequestException {
request.setAttribute("related-" + rType, calendars);
rType = "vote";
- rQuery = QueryBuilder.build().otype(rType).and().keyValue("billno", id).query();
+ rQuery = QueryBuilder.build().otype(rType).and().relatedBills("billno", id).query();
ArrayList<Vote> votes = SearchEngine.getInstance().getSenateObjects(rQuery, Vote.class);
request.setAttribute("related-" + rType, votes);
}
Please sign in to comment.
Something went wrong with that request. Please try again.