add year to YAML data

This commit is contained in:
2019-05-27 15:05:38 +01:00
parent 632d165eae
commit e98e5143e2
2 changed files with 5 additions and 0 deletions

1
fih.py
View File

@ -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,