mirror of
https://github.com/timberjoegithub/GoogleScrape.git
synced 2026-07-22 00:19:48 +00:00
more linting
This commit is contained in:
@@ -2219,21 +2219,19 @@ def post_to_wordpress2(title,content,headers,date,rating,address,picslist,local_
|
|||||||
database_update_row(title,"wpurl",post_link,"forceall",local_outputs)
|
database_update_row(title,"wpurl",post_link,"forceall",local_outputs)
|
||||||
except AttributeError as error :
|
except AttributeError as error :
|
||||||
print (f' Error: {error}')
|
print (f' Error: {error}')
|
||||||
else:
|
elif post_id:
|
||||||
|
print (' Post already existed: Post ID : ',post_id)
|
||||||
if post_id:
|
print (' Found post for : '+title)
|
||||||
print (' Post already existed: Post ID : ',post_id)
|
if env.force_web_create:
|
||||||
print (' Found post for : '+title)
|
|
||||||
if env.force_web_create:
|
|
||||||
create_wordpress_post(newdate2,picchop,title,address,headers,post_id,linkslist,\
|
|
||||||
local_outputs,content,googleadress,rating,featured_photo_id)
|
|
||||||
#update_wordpress()
|
|
||||||
else:
|
|
||||||
print (' Found existing post but skipping updating post')
|
|
||||||
else:
|
|
||||||
create_wordpress_post(newdate2,picchop,title,address,headers,post_id,linkslist,\
|
create_wordpress_post(newdate2,picchop,title,address,headers,post_id,linkslist,\
|
||||||
local_outputs,content,googleadress,rating,featured_photo_id)
|
local_outputs,content,googleadress,rating,featured_photo_id)
|
||||||
print (' Creating wordpress post from scratch for: '+title)
|
#update_wordpress()
|
||||||
|
else:
|
||||||
|
print (' Found existing post but skipping updating post')
|
||||||
|
else:
|
||||||
|
create_wordpress_post(newdate2,picchop,title,address,headers,post_id,linkslist,\
|
||||||
|
local_outputs,content,googleadress,rating,featured_photo_id)
|
||||||
|
print (' Creating wordpress post from scratch for: '+title)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
##################################################################################################
|
##################################################################################################
|
||||||
|
|||||||
Reference in New Issue
Block a user