Remove unused code.

This commit is contained in:
BoHung Chiu 2023-07-05 09:42:38 +08:00
parent 144e237bff
commit 5a990fc245
1 changed files with 1 additions and 1 deletions

View File

@ -192,7 +192,7 @@ class Admin::AnnouncementsController < OrbitAdminController
if File.exist?(filename) if File.exist?(filename)
@thread.update(:status=>{:status=>'finish','finish_percent'=>100,'info'=>I18n.t('announcement.read_from_cache')}) @thread.update(:status=>{:status=>'finish','finish_percent'=>100,'info'=>I18n.t('announcement.read_from_cache')})
else else
excel_contents = render_to_string( handlers: [:axlsx], formats: [:xlsx] ,partial: 'export_excel.xlsx',locals: {:@announcements=>@announcements,:@thread=>@thread, :@host=>@host} ) excel_contents = render_to_string( handlers: [:axlsx], formats: [:xlsx] ,partial: 'export_excel.xlsx' )
File.open(filename, 'w') do |f| File.open(filename, 'w') do |f|
f.write excel_contents f.write excel_contents
end end