mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-30 19:52:20 +01:00
6 lines
291 B
Plaintext
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 |