add year to YAML data
This commit is contained in:
1
fih.py
1
fih.py
@ -85,6 +85,7 @@ def mattermost_incident_command( command, args, channel_id, raw_incident_number,
|
||||
ev.set_title( channel[ 'purpose' ] )
|
||||
ev.set_slug( raw_incident_number )
|
||||
ev.set_published( datetime.datetime.utcnow().strftime( "%Y-%m-%d %H:%M" ) )
|
||||
ev.set_year( datetime.datetime.utcnow().strftime( "%Y" ) )
|
||||
written = ev.write()
|
||||
|
||||
app.mm.posts.create_post( options = { 'channel_id': private_channel_id,
|
||||
|
Reference in New Issue
Block a user