TNRIS / InteractiveWaterPlan

Source for the TWDB 2012 Interactive State Water Plan
http://2012.texasstatewaterplan.org
6 stars 0 forks source link

Incomplete CSV download #155

Closed jseppi closed 9 years ago

jseppi commented 9 years ago

Looks like if a column does not have all values, then the downloaded csv omits those columns. For example: http://texasstatewaterplan.org/api/v1/strategies/region/D?format=csv is missing the columns for SS2010, SS2020, SS2030

jseppi commented 9 years ago

Actually the problem is that I'm pulling the fields for the csv off the first row of the results. If that row doesn't have all keys, then that column will be missing for all rows.

jseppi commented 9 years ago

And that happens because of the filterZeroValues filter