Support notify in config

This commit is contained in:
Guy Van Sanden 2024-03-20 11:46:46 +01:00
parent 384385c24b
commit c6c2950ed6
2 changed files with 9 additions and 1 deletions

View File

@ -1,4 +1,5 @@
{
"url": "",
"webhook": "",
"notify": "",
}

View File

@ -74,7 +74,14 @@ baseurl = config['url']
webhook = config['webhook']
message = args.message
notify = args.notify
notify = None
if args.notify is None:
if config.get('notify') is not None:
notify = config.get('notify')
else:
notify = args.notify
ran = False
if args.pid != 0: