mirror of
https://github.com/Matte23/circolapp.git
synced 2026-10-15 23:45:16 +00:00
Fix last circular notified more than one time
This commit is contained in:
1 parent
bd6db8e124
commit
541a4ef7c2
1 file changed
+2
-2
@@ -43,10 +43,10 @@ class DataFetcher {
|
||||
val list = ArrayList<Circular>()
|
||||
|
||||
htmlList.forEach { element ->
|
||||
if (element.text().startsWith("All", true)) {
|
||||
if (element.parents().size == 6) {
|
||||
list.last().attachmentsNames.add(element.text())
|
||||
list.last().attachmentsUrls.add(element.attr("href"))
|
||||
} else {
|
||||
} else if (element.parents().size == 4) {
|
||||
list.add(Circular.generateFromString(element.text(), element.attr("href")))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user