[IMP] Improve ospp_base and ospp_slide modules
parent
78a1c42803
commit
9969c573e6
|
@ -228,7 +228,7 @@ class ChannelInstance(models.Model):
|
||||||
|
|
||||||
response = requests.request("POST", url, headers=headers, data=urlencode(payload), verify=False)
|
response = requests.request("POST", url, headers=headers, data=urlencode(payload), verify=False)
|
||||||
rec.message = response.text
|
rec.message = response.text
|
||||||
if response.status_code == 200 and 'error' not in response.text:
|
if response.status_code == 200 and ('error' not in response.text or 'exists' in response.text):
|
||||||
rec.instance_created = True
|
rec.instance_created = True
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue