[IMP] Improve ospp_slide module
							parent
							
								
									f36692f414
								
							
						
					
					
						commit
						18ec73193c
					
				|  | @ -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 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	 Oliver Yuan
						Oliver Yuan