Skip to content

Commit

Permalink
Merge pull request #5 from Rowbotronics/master
Browse files Browse the repository at this point in the history
Direct Meetup Registrants To Register At External Site
  • Loading branch information
Rowbotronics authored May 31, 2017
2 parents c79cb53 + 563fd17 commit e8d8faf
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions src/plugins/Meetup/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,18 +64,24 @@ def createEvent(self, event):
rsvp_limit = 1;
if config.checkBool(self.getSetting("Allow RSVP")):
rsvp_limit=0

self.checkForInterruption()
meetupEvent = api.CreateEvent({

meetup_details = {
'group_id': group.id,
'name': title,
'description': description,
'time': event['startTime'].toTime_t() * 1000,
'duration': event['startTime'].msecsTo(event['stopTime']),
'venue_id': self.getSetting('Venue ID'),
'publish_status': 'draft',
'rsvp_limit': rsvp_limit
})
'rsvp_limit': rsvp_limit,
'guest_limit': 0,
'waitlisting': 'off',
}
if event['registrationURL'] != '':
meetup_details['question_0'] = "This event requires external registration. Please follow the link in the event description to register for this class. Registering on Meetup does not reserve your spot for this event."

self.checkForInterruption()
meetupEvent = api.CreateEvent(meetup_details)

if config.checkBool(self.getSetting('Use this as registration URL')):
event['registrationURL'] = meetupEvent.event_url
Expand Down

0 comments on commit e8d8faf

Please sign in to comment.