This commit is contained in:
Joe Steele
2024-11-03 15:55:28 -05:00
parent f0f1eacfbd
commit 875d2f5c2b
+3 -2
View File
@@ -289,7 +289,7 @@ def get_hastags(address, name, hashtype):
state = 'Florida' state = 'Florida'
try: try:
city = re.sub( r'[^a-zA-Z]','',addressdict[1]) city = re.sub( r'[^a-zA-Z]','',addressdict[1])
except: except:
city = 'WinterGarden' city = 'WinterGarden'
if 'short' in hashtype: if 'short' in hashtype:
defaulttags = '#'+name_no_spaces+' #foodie #food #joeeatswhat @timberjoe' defaulttags = '#'+name_no_spaces+' #foodie #food #joeeatswhat @timberjoe'
@@ -505,7 +505,8 @@ def get_google_data(driver, local_outputs):
except NoSuchElementException : except NoSuchElementException :
visitdate = "Unknown" visitdate = "Unknown"
print(' Visited: ',visitdate) print(' Visited: ',visitdate)
if re.match('^[a-zA-Z]+', visitdate) is None and re.match('^[a-zA-Z]+', visitdate) is not None: if re.match('^[a-zA-Z]+', visitdate) is None and re.match('^[a-zA-Z]+', visitdate) \
is not None:
#if visitdate[:1].isalpha: #if visitdate[:1].isalpha:
newdate,newdate2,visitdate = get_wordpress_post_date_string(visitdate, str(datetime.now())) newdate,newdate2,visitdate = get_wordpress_post_date_string(visitdate, str(datetime.now()))
print(' Visited altered to : ',visitdate) print(' Visited altered to : ',visitdate)