raannakasturi commited on
Commit
d9ea04d
·
1 Parent(s): cc2c2ad

Improve post status logging for clarity in post_post function

Browse files
Files changed (1) hide show
  1. post_blog.py +1 -1
post_blog.py CHANGED
@@ -107,7 +107,7 @@ def post_post(title, category, body, image):
107
  }
108
  data = requests.post(url, headers=headers, json=post_data).json()
109
  if data['status'] == 'LIVE':
110
- print(f"{title} is {data['status']}")
111
  return True
112
  else:
113
  print(f"Error posting {title}: {data}")
 
107
  }
108
  data = requests.post(url, headers=headers, json=post_data).json()
109
  if data['status'] == 'LIVE':
110
+ print(f"The post '{title}' is {data['status']}")
111
  return True
112
  else:
113
  print(f"Error posting {title}: {data}")