18F / open-data-maker

make it easy to turn a lot of potentially large csv files into easily accessible open data
Other
199 stars 135 forks source link

Stats queries return useless page, per_page and results JSON elements #277

Open yozlet opened 8 years ago

yozlet commented 8 years ago

See example results JSON below.

{
  "metadata": {
    "total": 3667,
    "page": 0,
    "per_page": 20
  },
  "results": [],
  "aggregations": {
    "school.tuition_revenue_per_fte": {
      "avg": "0.1088815711947627E5",
      "sum": 73288234,
      "std_deviation": "0.75913587304684015E4",
      "std_deviation_bounds": {
        "upper": "0.26070874580413074E5",
        "lower": "-0.4294560341460534E4"
      }
    }
  }
}

The two page elements in metadata are irrelevant, as is the always-empty results array. We should remove those entirely.