smsfactor: set pushtype=alert if nostop is present (#70667)

This commit is contained in:
Benjamin Dauvergne 2022-10-25 14:42:19 +02:00
parent 2327051472
commit db88c7d640
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@ class SMSFactorSMSGateway(SMSResource):
'sender': sender,
'text': text,
'to': dest,
'pushtype': 'alert' if kwargs.get('stop', False) else 'marketing',
'pushtype': 'alert' if not kwargs.get('stop') else 'marketing',
}
data = self.request('get', 'send', params=params)
logging.info('SMS Factor answered with %s', data)