mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-14 02:26:58 -07:00
Add option to save newsletter only
This commit is contained in:
parent
84406e6797
commit
862ed5ce9f
2 changed files with 14 additions and 2 deletions
|
@ -306,7 +306,8 @@ class Newsletter(object):
|
|||
'time_frame_units': 'days',
|
||||
'formatted': 1,
|
||||
'notifier_id': 0,
|
||||
'filename': ''}
|
||||
'filename': '',
|
||||
'save_only': 0}
|
||||
_DEFAULT_EMAIL_CONFIG = EMAIL().return_default_config()
|
||||
_DEFAULT_EMAIL_CONFIG['from_name'] = 'Tautulli Newsletter'
|
||||
_DEFAULT_EMAIL_CONFIG['notifier_id'] = 0
|
||||
|
@ -436,6 +437,10 @@ class Newsletter(object):
|
|||
return False
|
||||
|
||||
self._save()
|
||||
|
||||
if self.config['save_only']:
|
||||
return True
|
||||
|
||||
return self._send()
|
||||
|
||||
def _save(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue