From cbc21642b17b57f87f0c0552de9808bb3a88b4bd Mon Sep 17 00:00:00 2001 From: Joe Steele Date: Thu, 13 Jun 2024 08:54:23 -0400 Subject: [PATCH] Added business url to Twitter --- social.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/social.py b/social.py index c2b337d..024fd6c 100644 --- a/social.py +++ b/social.py @@ -858,9 +858,11 @@ def post_to_x2(title, content, date, rating, address, picslist, instasession,out # Path to the video you want to upload #video_path = 'path_to_video.mp4' # Message to post along with the video + business_url_list = outputs['postssession'].query(Posts).filter(Posts.name == title).all() + business_url = business_url_list[0].business_url_list wpurllist = outputs['postssession'].query(Posts).filter(Posts.name == title).all() wpurl = wpurllist[0].wpurl - status_message = str(title) + ': My Review - '+ wpurl + status_message = str(title) + ': My Review - '+ wpurl + '\n Business website: '+ business_url status_message2 = status_message +' '+str(get_hastags(address, title, 'short'))+' ' status_message_short = status_message2[:279] # if len(status_message) > 279: