mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-31 21:37:16 +00:00
Allow headers and footers for JSON format
You wouldn't want it by default, but it can be enabled with a parameter like display_summary_row=true
This commit is contained in:
@@ -12,7 +12,7 @@ module Reporting
|
||||
|
||||
# Strip header and summary rows for these formats
|
||||
def raw_render?
|
||||
@report.params[:report_format].in?(['json', 'csv'])
|
||||
@report.params[:report_format].in?(['csv'])
|
||||
end
|
||||
|
||||
# Do not format values for these output formats
|
||||
|
||||
Reference in New Issue
Block a user