Skip to content

Commit

Permalink
Поддержка участка имени Карбышева и пропажа 402 участка. . #24
Browse files Browse the repository at this point in the history
  • Loading branch information
Yakov Sirotkin committed Aug 12, 2014
1 parent ac83ec6 commit f9d72e4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions support/src/org/spbelect/OfficialCheck.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,15 @@ public boolean accept(File dir, String name) {
if (s.length() == 0) {
continue;
}
if (s.equals("http://www.st-petersburg.vybory.izbirkom.ru//st-petersburg/ik/4784024125407")) {
continue;
}
String page = getPage(s);
//System.out.println(page);
//System.out.println(s);
String uikIdPrefix = "<h2>Участковая избирательная комиссия ";
int idStart = page.indexOf(uikIdPrefix) + uikIdPrefix.length() + 1;
int idFinish = page.indexOf("</h2>", idStart);
int uikId = Integer.parseInt(page.substring(idStart, idFinish));
int uikId = Integer.parseInt(page.substring(idStart, idFinish).replace("\"Д.М. Карбышева\"", "").trim());
Set<String> names = uiksMap.get(uikId);

int pos = page.indexOf("Кем рекомендован в состав комиссии", idFinish);
Expand Down

0 comments on commit f9d72e4

Please sign in to comment.