mirror of
https://github.com/Matte23/circolapp.git
synced 2025-12-06 07:29:10 +00:00
Fix last circular notified more than one time
This commit is contained in:
@@ -43,10 +43,10 @@ class DataFetcher {
|
|||||||
val list = ArrayList<Circular>()
|
val list = ArrayList<Circular>()
|
||||||
|
|
||||||
htmlList.forEach { element ->
|
htmlList.forEach { element ->
|
||||||
if (element.text().startsWith("All", true)) {
|
if (element.parents().size == 6) {
|
||||||
list.last().attachmentsNames.add(element.text())
|
list.last().attachmentsNames.add(element.text())
|
||||||
list.last().attachmentsUrls.add(element.attr("href"))
|
list.last().attachmentsUrls.add(element.attr("href"))
|
||||||
} else {
|
} else if (element.parents().size == 4) {
|
||||||
list.add(Circular.generateFromString(element.text(), element.attr("href")))
|
list.add(Circular.generateFromString(element.text(), element.attr("href")))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user