1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-07 01:54:16 +01:00
fab-manager/app/views/api/statistics/export_subscription.xlsx.axlsx

6 lines
291 B
Plaintext
Raw Normal View History

2016-07-05 16:13:11 +02:00
wb = xlsx_package.workbook
wb.add_worksheet(name: "Abonnements") do |sheet|
@results[:hits][:hits].each do |hit|
sheet.add_row [hit[:_source].date, hit[:_source].userId, hit[:_source].gender, hit[:_source].age, hit[:_source].planId, hit[:_source].groupName, hit[:_source].ca]
end
end