Skip to content

Instantly share code, notes, and snippets.

@bhfailor
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bhfailor/9842884 to your computer and use it in GitHub Desktop.
Save bhfailor/9842884 to your computer and use it in GitHub Desktop.
skype discussion of requirements for season pass processing
[3/28/14 12:35:33 PM] zaeem asif: https://www.racemenu.com/director/39741/registration/teams
https://www.racemenu.com/director/39751/registration/teams
address
[3/28/14 12:40:31 PM] alain - racemenu: https://www.racemenu.com/director/39741/registration/edit_team/25871
[3/28/14 12:41:08 PM] alain - racemenu: https://www.racemenu.com/director/39771/registration/teams
[3/28/14 12:43:07 PM] alain - racemenu: https://www.racemenu.com/director/39741/registration/edit/777061
[3/28/14 12:47:56 PM] alain - racemenu: 2013 HACK SOLUTION:
1) replicated SP team names
2) replicated SP registrations
3) disbursed entry fees
FROM FIRST EVENT ACROSS ALL SIX EVENTS
[3/28/14 12:48:47 PM] alain - racemenu: CURRENT SCRIPT:
1) replicates team names
2) replicates team members
3) does NOT replicate registrations
4) does NOT disburse revenue
[3/28/14 12:50:19 PM] zaeem asif: https://www.adminium.io/resources/teams?search=39741
[3/28/14 1:15:23 PM] alain - racemenu: https://www.racemenu.com/director/39741/email/confirmation
[3/28/14 1:18:23 PM] zaeem asif: https://www.racemenu.com/director/39741/registration/teams
[3/28/14 1:28:13 PM] zaeem asif: https://www.racemenu.com/events/39741-Boston-5K-Summer-Series-1-Season-Pass
[3/28/14 1:28:25 PM] zaeem asif: https://www.racemenu.com/director/39741/registration/teams
[3/28/14 1:28:49 PM] zaeem asif: 39751, 39761....39791
[3/28/14 1:31:10 PM] zaeem asif: 21201,21211,21221,21231,21241,21251
[3/28/14 1:39:47 PM] zaeem asif: https://www.racemenu.com/director/39741/registration/teams
[3/28/14 1:40:41 PM] zaeem asif:
[28/03/2014 9:47:56 pm] alain - racemenu: 2013 HACK SOLUTION:
1) replicated SP team names
2) replicated SP registrations
3) disbursed entry fees
FROM FIRST EVENT ACROSS ALL SIX EVENTS
[28/03/2014 9:48:46 pm] alain - racemenu: CURRENT SCRIPT:
1) replicates team names
2) replicates team members
3) does NOT replicate registrations
4) does NOT disburse revenue
[3/28/14 1:42:32 PM] zaeem asif: -------------------- Script -----------------------------
@t = Team.find(:all, :conditions => { :event_id => 39741})
@t.each do |t|
teamid= 39791
@new_t = Team.new
@new_t.event_id = teamid
@new_t.race_director_id = t.race_director_id
@new_t.name =t.name
@new_t.company_name = t.company_name
@new_t.captain_name = t.captain_name
@new_t.email = t.email
@new_t.phone = t.phone
@new_t.address = t.address
@new_t.apt = t.apt
@new_t.city =t.city
@new_t.state = t.state
@new_t.zip = t.zip
@new_t.created_at = t.created_at
@new_t.updated_at = t.updated_at
@new_t.approved = t.approved
@new_t.cpt_first_name = t.cpt_first_name
@new_t.cpt_last_name = t.cpt_last_name
@new_t.team_type = t.team_type
@new_t.processed_members_count = t.processed_members_count
@new_t.captain_registration_id = t.captain_registration_id
@new_t.save
end
------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment