codeforamerica / city-analytics-dashboard

⛔️ DEPRECATED Display google analytics from a city's website as a dashboard
MIT License
38 stars 34 forks source link

Incorrect date parameters requested #39

Closed migurski closed 9 years ago

migurski commented 9 years ago

I’m seeing requests like this:

method=GET path="/historic?ids=ga:1935932&dimensions=ga%3AnthMinute&metrics=ga%3Asessions&start-date=2015-03-1&end-date=2015-03-02&max-results=1000"

Note the date 2015-03-1, which triggers this error:

 "Invalid value '2015-03-1'. Values must match the following regular expression: '[0-9]{4}-[0-9]{2}-[0-9]{2}|today|yesterday|[0-9]+(daysAgo)'"
phae commented 9 years ago

Oh. Huh. Should be a simple fix - it's just a missing 0 for single digit dates. My bad.