]> git.sesse.net Git - pkanalytics/blobdiff - ultimate.js
Count interceptions towards (successful) catches.
[pkanalytics] / 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;
                                }