From a774e538b51e1639da259453a4f961b46fb18b22 Mon Sep 17 00:00:00 2001 From: Joe Steele Date: Thu, 20 Jun 2024 21:11:12 -0400 Subject: [PATCH] bringing database up to date --- social.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/social.py b/social.py index bc30e4a..737405e 100644 --- a/social.py +++ b/social.py @@ -778,7 +778,7 @@ def check_wordpress_media(filename, headers): file_name_minus_extension = filename response = requests.get(env.wpAPI + "/media?search="+file_name_minus_extension,\ - headers=headers,timeout=40) + headers=headers,timeout=60) try: result = response.json() if result: @@ -1358,7 +1358,7 @@ def post_to_wordpress(title,content,headers,date,rating,address,picslist,local_o } try: image_response = requests.post(env.wpAPI + "/media", headers=headers, \ - files=image,timeout=30) + files=image,timeout=60) except AttributeError as error: print(" An error uploading picture ' + picname+ ' occurred:", \ type(error).__name__)