mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-16 02:02:58 -07:00
parent
b74a1a3c32
commit
a3ad40122d
2 changed files with 5 additions and 2 deletions
|
@ -402,7 +402,9 @@ class Newsletter(object):
|
|||
pass
|
||||
|
||||
if self.start_date is None:
|
||||
if self.config['time_frame_units'] == 'days':
|
||||
if self.config['time_frame_units'] == 'months':
|
||||
self.start_date = self.end_date.shift(months=-self.config['time_frame'])
|
||||
elif self.config['time_frame_units'] == 'days':
|
||||
self.start_date = self.end_date.shift(days=-self.config['time_frame'])
|
||||
else:
|
||||
self.start_date = self.end_date.shift(hours=-self.config['time_frame'])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue