Skip to content

Commit

Permalink
1.0.6
Browse files Browse the repository at this point in the history
fix beaver bug
  • Loading branch information
d-shapiro committed May 1, 2019
1 parent 87105be commit 536f75c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name := "wikiClade"

version := "1.0.5"
version := "1.0.6"

scalaVersion := "2.12.8"

Expand Down
10 changes: 9 additions & 1 deletion src/main/scala/cladograms/EnWikipediaClade.scala
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,15 @@ case class EnWikipediaClade(name: String, path: Option[String], priorityOverride
val ths = row.select("th")
if (!started) {
if (!ths.isEmpty && ths.get(0).text().equals("Scientific classification")) {
iter(i + 1, started=true, knownPages, taxList)
val updKnownPages = path match {
case Some(pathStr) =>
WikiProxy.getTitle(baseUrl + pathStr) match {
case Some(title) => knownPages + title
case None => knownPages
}
case None => knownPages
}
iter(i + 1, started=true, updKnownPages, taxList)
} else {
iter(i + 1, started, knownPages, taxList)
}
Expand Down

0 comments on commit 536f75c

Please sign in to comment.