Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. diff --git a/lib/tasks/program.rake b/lib/tasks/program.rake
  2. index 61b1aa993..6d5a85108 100644
  3. --- a/lib/tasks/program.rake
  4. +++ b/lib/tasks/program.rake
  5. @@ -23,7 +23,7 @@ namespace :program do
  6. when !ENV['EVENT_NAME'].nil?
  7. Event.find_by_name(ENV['EVENT_NAME'])
  8. when !ENV['EVENT_CODE'].nil?
  9. - Event.find_by_code(ENV['EVENT_CODE'])
  10. + Event.find_by_code(ENV['EVENT_CODE']) || Event.find_by_secondary_code(ENV['EVENT_CODE'])
  11. end
  12.  
  13. (1..num_users).each do |user_num|
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement