Modify query to work better across databases

This commit is contained in:
James Mason 2018-02-25 20:11:09 -08:00
parent cb58d47d85
commit 0c7b19e01a
No known key found for this signature in database
GPG key ID: 1B3951886C449023

View file

@ -127,8 +127,10 @@ module Admin
@new_program_length = @conference.new_program_hours(current_user.last_sign_in_at)
@total_withdrawn = @all_events.where(state: :withdrawn).count
@new_withdrawn = @all_events
.where('state = "withdrawn" and created_at > ?', current_user.last_sign_in_at).count
@new_withdrawn = @all_events.where(state: :withdrawn).where(
'events.created_at > ?',
current_user.last_sign_in_at
).count
# Step by step list
@conference_progress = @conference.get_status