Add custom cron to newsletter schedule

This commit is contained in:
JonnyWong16 2018-04-02 10:17:51 -07:00
parent a4de63095f
commit c260543586
4 changed files with 33 additions and 7 deletions

View file

@ -230,6 +230,7 @@ def set_newsletter_config(newsletter_id=None, agent_id=None, **kwargs):
'subject': agent_class.subject,
'body': agent_class.body,
'cron': kwargs.get('cron'),
'cron_type': kwargs.get('cron_type'),
'active': kwargs.get('active')
}