]> git.sesse.net Git - ultimatescore/commitdiff
Add a FIXME.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 22 Feb 2020 10:24:30 +0000 (11:24 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 22 Feb 2020 10:24:30 +0000 (11:24 +0100)
carousel.js

index ba0c93effbc03df212d80b94db2e2a3bd3d8e2e6..f8f2f8c69728e54f9a820f3c29d84be01fd5e3d6 100644 (file)
@@ -441,7 +441,7 @@ function filter_teams(teams, response)
                let idx1 = teams_to_idx[games[i].name1];
                let idx2 = teams_to_idx[games[i].name2];
                if (idx1 !== undefined) {
-                       ++teams[idx1].ngames;
+                       ++teams[idx1].ngames;  // FIXME: shouldn't nplayed be just as good?
                }
                if (idx2 !== undefined) {
                        ++teams[idx2].ngames;