appa dn plugin udpates for integrationa dn final touches
This commit is contained in:
@@ -745,8 +745,9 @@ function igny8_map_wp_status_to_igny8($wp_status) {
|
||||
@shared_task(bind=True, max_retries=3)
|
||||
def publish_content_to_wordpress(self, content_id, ...):
|
||||
try:
|
||||
|
||||
response = requests.post(wordpress_url, json=content_data, timeout=30)
|
||||
|
||||
if response.status_code == 201:
|
||||
# Success
|
||||
content.wordpress_sync_status = 'success'
|
||||
content.save()
|
||||
|
||||
Reference in New Issue
Block a user