feat(server/gtfs): only display conflicting duplicates during import
This commit is contained in:
parent
5535034fd7
commit
32f6e415e1
1 changed files with 4 additions and 3 deletions
|
|
@ -150,9 +150,10 @@ class GtfsHandler(
|
||||||
.groupBy { it.id }
|
.groupBy { it.id }
|
||||||
.forEach { (id, gstops) ->
|
.forEach { (id, gstops) ->
|
||||||
if (gstops.size > 1) {
|
if (gstops.size > 1) {
|
||||||
// if (gstops.withIndex().any { (i, stop) -> i != 0 && stop == gstops[i - 1] })
|
if (gstops.withIndex().any { (i, stop) -> i != 0 && stop != gstops[i - 1] }) {
|
||||||
gstops.forEach {
|
gstops.forEach {
|
||||||
log.info("duplicate $id: $it")
|
log.info("duplicate $id: $it")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue