]> git.sesse.net Git - pkanalytics/commitdiff
Fix some warnings about events we actually understand.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 11 May 2023 15:33:50 +0000 (17:33 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 11 May 2023 15:33:50 +0000 (17:33 +0200)
ultimate.js

index 10f8fac4632dc449c028773eb4ad80acdac188cd..7e150b684f45e14ea7983e72320d7c13fb3e2191 100644 (file)
@@ -281,10 +281,10 @@ function process_matches(json) {
                        } else if (type === 'offensive_soft_plus' || type === 'offensive_soft_minus' || type === 'defensive_soft_plus' || type === 'defensive_soft_minus') {
                                ++p[type];
                        } else if (type !== 'in' && type !== 'out' && type !== 'pull' &&
-                                  type !== 'their_goal' && type !== 'stoppage' && type !== 'unknown' &&
+                                  type !== 'their_goal' && type !== 'stoppage' && type !== 'restart' && type !== 'unknown' &&
                                   type !== 'set_defense' && type !== 'goal' && type !== 'throwaway' &&
                                   type !== 'drop' && type !== 'set_offense' && type !== 'their_goal' &&
-                                  type !== 'pull' && type !== 'pull_landed' && type !== 'pull_oob' &&
+                                  type !== 'pull' && type !== 'pull_landed' && type !== 'pull_oob' && type !== 'their_pull' &&
                                   type !== 'their_throwaway' && type !== 'defense' && type !== 'interception') {
                                console.log("Unknown event:", e);
                        }