app/strategies/pending_reservation_finder.rb
# Find the meetings not closed
# A meeting not closed is a meeting not in the past, withput results and with entry deadline not gone
#
Find the meetings not closed
A meeting not closed is a meeting not in the past, withput results and with entry deadline not gone
Find the meetings not closed A meeting not closed is a meeting not in the past withput results and with entry deadline not gone
def find_open_meetings( check_date = Date.today() )
    @meetings_found = true
    if !@seasons_found
      find_manageable_seasons()
    end
    @meetings_ids = Meeting.
      where( are_results_acquired: false ).
      where( season_id: @seasons_ids ).
      where(['meetings.header_date >= ? and (meetings.entry_deadline is null or meetings.entry_deadline >= ?)', check_date, check_date] ).
      select( :id ).
      map{ |m| m.id }
  end
def find_open_meetings ( check_date = Date . today ( ) ) @meetings_found = true if ! @seasons_found find_manageable_seasons ( ) end @meetings_ids = Meeting . where ( are_results_acquired : false ) . where ( season_id : @seasons_ids ) . where ( [ 'meetings.header_date >= ? and (meetings.entry_deadline is null or meetings.entry_deadline >= ?)' , check_date , check_date ] ) . select ( :id ) . map { | m | m . id } end
Find the meetings not closed
A meeting not closed is a meeting not in the past, withput results and with entry deadline not gone
Find the meetings not closed A meeting not closed is a meeting not in the past withput results and with entry deadline not gone
# If no seasons_ids check out
check_date
<not_specific>
today
<not_specific>