mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-14 02:26:58 -07:00
Add date and time parameters for notifications and newsletters
This commit is contained in:
parent
37841b6e8c
commit
7387cb8322
3 changed files with 55 additions and 10 deletions
|
@ -555,6 +555,14 @@ class Newsletter(object):
|
|||
'server_name': plexpy.CONFIG.PMS_NAME,
|
||||
'start_date': self.start_date.format(date_format),
|
||||
'end_date': self.end_date.format(date_format),
|
||||
'current_year': self.start_date.year,
|
||||
'current_month': self.start_date.month,
|
||||
'current_day': self.start_date.day,
|
||||
'current_hour': self.start_date.hour,
|
||||
'current_minute': self.start_date.minute,
|
||||
'current_second': self.start_date.second,
|
||||
'current_weekday': self.start_date.isocalendar()[2],
|
||||
'current_week': self.start_date.isocalendar()[1],
|
||||
'week_number': self.start_date.isocalendar()[1],
|
||||
'newsletter_time_frame': self.config['time_frame'],
|
||||
'newsletter_time_frame_units': self.config['time_frame_units'],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue