Skip to content

Commit

Permalink
added scheduling parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
ericsong committed Oct 31, 2014
1 parent 82d54c2 commit 4aa9266
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions smtpapi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,17 @@ def add_section(self, key, section):
def set_sections(self, value):
self.data['section'] = value

def add_send_each_at(self, time):
if 'send_each_at' not in self.data:
self.data['send_each_at'] = []
self.data['send_each_at'].append(time)

def set_send_each_at(self, time):
self.data['send_each_at'] = time

def set_send_at(self, time):
self.data['send_at'] = time

def add_filter(self, app, setting, val):
if 'filters' not in self.data:
self.data['filters'] = {}
Expand Down

0 comments on commit 4aa9266

Please sign in to comment.