Add date and time parameters for notifications and newsletters
This commit is contained in:
@@ -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'],
|
||||
|
Reference in New Issue
Block a user