[IMP] Improve ospp_slide module

university-opentkr-16.0
Oliver Yuan 2023-04-18 10:43:02 +08:00
parent f36692f414
commit 18ec73193c
1 changed files with 2 additions and 2 deletions

View File

@ -248,7 +248,7 @@ class ChannelInstance(models.Model):
'demo': demo 'demo': demo
} }
response = requests.request("POST", url, headers=headers, data=urlencode(payload), verify=False) response = requests.request("POST", url, headers=headers, data=urlencode(payload))
rec.message = response.text rec.message = response.text
if response.status_code == 200 and ('error' not in response.text or 'exists' 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
@ -273,7 +273,7 @@ class ChannelInstance(models.Model):
'name': dbname, 'name': dbname,
} }
response = requests.request("POST", url, headers=headers, data=urlencode(payload), verify=False) response = requests.request("POST", url, headers=headers, data=urlencode(payload))
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:
rec.instance_created = False rec.instance_created = False