Add primary results to baseball & basketball

This commit is contained in:
Brian Miyaji
2014-08-25 00:16:08 +10:00
parent dd48de0fc3
commit 0e7d8994fe
2 changed files with 4 additions and 4 deletions

View File

@@ -16,7 +16,7 @@
{ "name" : "8", "description" : "8th inning runs" },
{ "name" : "9", "description" : "9th inning runs" },
{ "name" : "", "id" : "extra", "description" : "Extra inning runs" },
{ "name" : "R", "description" : "Total runs", "main" : 1 },
{ "name" : "R", "description" : "Total runs", "primary" : 1 },
{ "name" : "H", "description" : "Hits" },
{ "name" : "E", "description" : "Errors" }
],
@@ -35,7 +35,7 @@
"columns": [
{ "name" : "W", "equation" : "$win", "description" : "Wins" },
{ "name" : "L", "equation" : "$loss", "description" : "Losses" },
{ "name" : "PCT", "equation" : "$win / $eventsplayed", "precision" : 3, "description" : "Win percentage" },
{ "name" : "PCT", "equation" : "$win / $eventsplayed", "precision" : 3, "priority" : 1, "description" : "Win percentage" },
{ "name" : "RS", "equation" : "$rfor", "description" : "Runs scored" },
{ "name" : "RA", "equation" : "$ragainst", "description" : "Runs allowed" },
{ "name" : "DIFF", "equation" : "$rfor - $ragainst", "description" : "Run differential" },

View File

@@ -10,7 +10,7 @@
{ "name" : "3", "description" : "3rd quarter points" },
{ "name" : "4", "description" : "4th quarter points" },
{ "name" : "", "id" : "ot", "description" : "Overtime points" },
{ "name" : "T", "id" : "points", "description" : "Total points", "main" : 1 }
{ "name" : "T", "id" : "points", "description" : "Total points", "primary" : 1 }
],
"performance": [
{ "name" : "MIN", "description" : "Minutes" },
@@ -33,7 +33,7 @@
"columns": [
{ "name" : "W", "equation" : "$win", "description" : "Wins" },
{ "name" : "L", "equation" : "$loss", "description" : "Losses" },
{ "name" : "PCT", "equation" : "$win / $eventsplayed", "precision" : 3, "description" : "Win percentage" },
{ "name" : "PCT", "equation" : "$win / $eventsplayed", "precision" : 3, "priority" : 1, "description" : "Win percentage" },
{ "name" : "PF", "equation" : "$pointsfor / $eventsplayed", "description" : "Average points for" },
{ "name" : "PA", "equation" : "$pointsagainst / $eventsplayed", "description" : "Average points against" },
{ "name" : "DIFF", "equation" : "( $pointsfor - $pointsagainst ) / $eventsplayed", "description" : "Average point differential" },