]> git.sesse.net Git - pkanalytics/commitdiff
Count interceptions towards (successful) catches.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 22 Jul 2023 19:18:03 +0000 (21:18 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 22 Jul 2023 19:18:03 +0000 (21:18 +0200)
ultimate.js

index cfcdf2e682772bb0625f6b3dfbe9404271d3f1cf..57155dbb0c707256448c31b84da75709661ae458 100644 (file)
@@ -178,7 +178,6 @@ function process_matches(json, filters) {
                        'stallouts': 0,
 
                        'defenses': 0,
-                       'interceptions': 0,
                        'points_played': 0,
                        'playing_time_ms': 0,
                        'offensive_playing_time_ms': 0,
@@ -528,7 +527,7 @@ function process_matches(json, filters) {
                                if (keep) ++p.defenses;
                        } else if (type === 'interception') {
                                if (keep) {
-                                       ++p.interceptions;
+                                       ++p.catches;
                                        ++p.defenses;
                                        ++p.touches;
                                }