smsfactor: set pushtype=alert if nostop is present (#70667)
This commit is contained in:
parent
2327051472
commit
db88c7d640
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue