Skip to content

Commit

Permalink
chore: removed logs for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
AdnanCigtekin committed Jan 11, 2023
1 parent ffe05d5 commit d28aa16
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,17 @@ static public ArrayNode getContributionCalendar(HtmlPage page) {

DomNodeList<DomElement> svgs = page.getElementsByTagName("rect");
List<String> elements = new ArrayList<String>();
System.out.println("svg count : " + svgs.size());
for(DomElement svg: svgs) {

SvgRect element = svg.getFirstByXPath("self::node()[@class='ContributionCalendar-day'and @data-level and @data-date]");
SvgRect element = svg.getFirstByXPath("self::node()[@class='ContributionCalendar-day'and @data-level and @data-date and @x and @y]");
if(element != null) {
System.out.println(svg);
elements.add(element.getAttribute("data-level"));

}

}

ArrayNode res = objectMapper.valueToTree(elements);
System.out.println("res size : " + res.size());
return res;
}

Expand Down

0 comments on commit d28aa16

Please sign in to comment.