Skip to content

Commit

Permalink
Remove exact duplicates
Browse files Browse the repository at this point in the history
  • Loading branch information
obruchez committed Dec 26, 2017
1 parent 4eb9b54 commit 174b39b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ object KindleClippings {
clippingsByBook.update(book, clippingsForBook :+ clipping)
}

KindleClippings(Map(clippingsByBook.toSeq.map(kv => kv._1 -> kv._2.toSeq): _*))
KindleClippings(Map(clippingsByBook.toSeq.map(kv => kv._1 -> kv._2.distinct): _*))
}

private val Page = """.*[Pp]age (\d+) .*""".r
Expand Down

0 comments on commit 174b39b

Please sign in to comment.