Skip to content

Commit 80840e8

Browse files
Stullemonfaiteanu
authored andcommitted
Fixed issues with events that have neither ratio nor amount
1 parent 213c9a9 commit 80840e8

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

js/ariva.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,11 @@ function extractEvents(page, handelsplatz) {
207207
continue;
208208
}
209209

210+
// filter events with neither ratio nor amount
211+
if ((hashmap.get("Verhältnis") == null || hashmap.get("Verhältnis").trim() == "") && (hashmap.get("Betrag") == null || hashmap.get("Betrag") == "")) {
212+
continue;
213+
}
214+
210215
var dc = new Packages.jsq.datastructes.Datacontainer();
211216
// Teilweise unterscheiden sich die Termine nach Handelsplätzen
212217
if (hashmap.get("Handelsplätze") != null && hashmap.get("Handelsplätze") != "") {

0 commit comments

Comments
 (0)