builded_data self build_data if self schedule data trigger push_meta g

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
builded_data = self.build_data()
if self.schedule.data == 'trigger':
push_meta.geofence = builded_data.get('target', {}).get('geofence', {})
if self.campaign_time_zone.data:
push_meta.campaign_time_zone = self.campaign_time_zone.data
if self.campaign_start.data:
push_meta.campaign_start = self.campaign_start.data.strftime('%b %d, %Y %I:%M %p')
if self.campaign_end.data:
push_meta.campaign_end = self.campaign_end.data.strftime('%b %d, %Y %I:%M %p')