Godwin
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
2 deletions
-
app/controllers/conference_administration_controller.rb
|
|
@ -342,9 +342,8 @@ class ConferenceAdministrationController < ApplicationController |
|
|
|
end |
|
|
|
|
|
|
|
def administrate_stats |
|
|
|
get_stats(!request.format.xlsx?) |
|
|
|
|
|
|
|
if request.format.xlsx? |
|
|
|
get_stats |
|
|
|
logger.info "Generating stats.xls" |
|
|
|
return respond_to do |format| |
|
|
|
format.xlsx { render xlsx: '../conferences/stats', filename: "stats-#{DateTime.now.strftime('%Y-%m-%d')}" } |
|
|
@ -360,6 +359,8 @@ class ConferenceAdministrationController < ApplicationController |
|
|
|
return |
|
|
|
end |
|
|
|
|
|
|
|
get_stats(true) |
|
|
|
|
|
|
|
@registration_count = @registrations.size |
|
|
|
@completed_registrations = 0 |
|
|
|
@bikes = 0 |
|
|
|