]> git.sesse.net Git - pkanalytics/commitdiff
Goals were double-counted as touches.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 6 Aug 2023 12:06:25 +0000 (14:06 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 6 Aug 2023 12:06:25 +0000 (14:06 +0200)
ultimate.js

index cb03126696ebb27c98b071cdd17c0d5e302a68f5..4e0797758a5c782e93eef88000d9cbc7dfe54338 100644 (file)
@@ -391,10 +391,6 @@ function calc_stats(json, filters) {
                                last_pull_was_ours = !offense;
                                between_points = false;
                        } else if (type === 'goal' || type === 'their_goal' || type === 'stoppage') {
-                               if (type === 'goal') {
-                                       if (keep) ++p.touches;
-                                       ++touches_this_possession;
-                               }
                                for (const [q,p] of Object.entries(players)) {
                                        if (p.on_field_since === null) {
                                                continue;