1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-30 19:52:20 +01:00
fab-manager/app/views/api/statistics/export_subscription.xlsx.axlsx
2016-07-05 16:13:11 +02:00

6 lines
291 B
Plaintext

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