Sha256: a976c7bf559c32b5292f246007cd1cccb64821fffb3b47207106ab71ee2428ce

Contents?: true

Size: 601 Bytes

Versions: 4

Compression:

Stored size: 601 Bytes

Contents

# Accept and reject talks based on IDs from the scheduling spreadsheet
#
def accept_and_reject_from_spreadsheet
  # Paste IDs from spreadsheet, separated by spaces
  #             ↓↓↓
  reject =   %w(   ).map(&:to_i)
  accept =   %w(   ).map(&:to_i)
  waitlist = %w(   ).map(&:to_i)

  reject.each do |id|
    p = Proposal.find(id)
    p.reject! unless p.rejected?
  end

  accept.each do |id|
    p = Proposal.find(id)
    p.accept! unless p.accepted?
  end

  waitlist.each do |id|
    p = Proposal.find(id)
    p.waitlist! unless p.waitlisted?
  end
end

accept_and_reject_from_spreadsheet()

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
open_conference_ware-1.0.0.pre4 util/update_proposal_status_from_voting_spreadsheet.rb
open_conference_ware-1.0.0.pre3 util/update_proposal_status_from_voting_spreadsheet.rb
open_conference_ware-1.0.0.pre2 util/update_proposal_status_from_voting_spreadsheet.rb
open_conference_ware-1.0.0.pre1 util/update_proposal_status_from_voting_spreadsheet.rb