smartchicago / chicagoworksforyou

A citywide dashboard with ward-by-ward views of service delivery in Chicago. Includes complete API. Built using Chicago Open311 data.
http://www.chicagoworksforyou.com
MIT License
17 stars 6 forks source link

Historic highs endpoint is returning a null value #183

Closed santheo closed 11 years ago

santheo commented 11 years ago
$ curl http://cwfy-api-staging.smartchicagoapps.org/wards/9/historic_highs.json?include_date=2013-07-30&count=1

angular.callbacks._0({
  "Highs": {
    "4fd3b167e750846744000005": null,
    "4fd3b656e750846c53000004": [
      {
        "Date": "2009-03-11",
        "Count": 54
      }
    ],
    "4fd3b750e750846c5300001d": [
      {
        "Date": "2010-07-20",
        "Count": 13
      }
    ],
…

I thought maybe that was because there had never been any requests of that type in that ward, but if you bring up yesterday, you'll see there were some (Graffiti Removal):

http://cwfy-staging.smartchicagoapps.org/ward/9/#/2013-07-30

cgansen commented 11 years ago

WFM, can you confirm?

$ curl "http://cwfy-api-staging.smartchicagoapps.org/wards/9/historic_highs.json?include_date=2013-07-30&count=1"
{
  "Highs": {
    "4fd3b167e750846744000005": [
      {
        "Date": "2012-05-16",
        "Count": 22
      }
    ],
    "4fd3b656e750846c53000004": [
      {
        "Date": "2009-03-11",
        "Count": 54
      }
    ],
    "4fd3b750e750846c5300001d": [
      {
        "Date": "2010-07-20",
        "Count": 13
      }
    ],
    "4fd3b9bce750846c5300004a": [
      {
        "Date": "2010-10-26",
        "Count": 7
      }
    ],
    "4fd3bbf8e750846c53000069": [
      {
        "Date": "2011-07-14",
        "Count": 33
      }
    ],
    "4fd3bd3de750846c530000b9": [
      {
        "Date": "2010-01-10",
        "Count": 16
      }
    ],
    "4fd3bd72e750846c530000cd": [
      {
        "Date": "2013-01-09",
        "Count": 11
      }
    ],
    "4fd6e4ece750840569000019": [
      {
        "Date": "2013-05-10",
        "Count": 2
      }
    ],
    "4ffa4c69601827691b000018": [
      {
        "Date": "2009-06-19",
        "Count": 14
      }
    ],
    "4ffa971e6018277d4000000b": [
      {
        "Date": "2010-07-09",
        "Count": 6
      }
    ],
    "4ffa995a6018277d4000003c": [
      {
        "Date": "2013-01-30",
        "Count": 4
      }
    ],
    "4ffa9cad6018277d4000007b": [
      {
        "Date": "2011-09-21",
        "Count": 64
      }
    ],
    "4ffa9db16018277d400000a2": [
      {
        "Date": "2010-07-19",
        "Count": 8
      }
    ],
    "4ffa9f2d6018277d400000c8": [
      {
        "Date": "2008-09-30",
        "Count": 14
      }
    ]
  },
  "Current": {
    "4fd3b167e750846744000005": {
      "Date": "2013-07-30",
      "Count": 3
    },
    "4fd3b656e750846c53000004": {
      "Date": "2013-07-30",
      "Count": 2
    },
    "4fd3b750e750846c5300001d": {
      "Date": "2013-07-30",
      "Count": 4
    },
    "4fd3b9bce750846c5300004a": {
      "Date": "2013-07-30",
      "Count": 0
    },
    "4fd3bbf8e750846c53000069": {
      "Date": "2013-07-30",
      "Count": 25
    },
    "4fd3bd3de750846c530000b9": {
      "Date": "2013-07-30",
      "Count": 3
    },
    "4fd3bd72e750846c530000cd": {
      "Date": "2013-07-30",
      "Count": 1
    },
    "4fd6e4ece750840569000019": {
      "Date": "2013-07-30",
      "Count": 0
    },
    "4ffa4c69601827691b000018": {
      "Date": "2013-07-30",
      "Count": 0
    },
    "4ffa971e6018277d4000000b": {
      "Date": "2013-07-30",
      "Count": 1
    },
    "4ffa995a6018277d4000003c": {
      "Date": "2013-07-30",
      "Count": 1
    },
    "4ffa9cad6018277d4000007b": {
      "Date": "2013-07-30",
      "Count": 3
    },
    "4ffa9db16018277d400000a2": {
      "Date": "2013-07-30",
      "Count": 0
    },
    "4ffa9f2d6018277d400000c8": {
      "Date": "2013-07-30",
      "Count": 0
    }
  }
}
santheo commented 11 years ago

WFM now too. Closing.