From 875d2f5c2baa3cb5e020ad2bdc90d91cbcdab331 Mon Sep 17 00:00:00 2001 From: Joe Steele Date: Sun, 3 Nov 2024 15:55:28 -0500 Subject: [PATCH] linting --- social.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/social.py b/social.py index 4fd5c5f..d9819ff 100644 --- a/social.py +++ b/social.py @@ -289,7 +289,7 @@ def get_hastags(address, name, hashtype): state = 'Florida' try: city = re.sub( r'[^a-zA-Z]','',addressdict[1]) - except: + except: city = 'WinterGarden' if 'short' in hashtype: defaulttags = '#'+name_no_spaces+' #foodie #food #joeeatswhat @timberjoe' @@ -505,7 +505,8 @@ def get_google_data(driver, local_outputs): except NoSuchElementException : visitdate = "Unknown" 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: newdate,newdate2,visitdate = get_wordpress_post_date_string(visitdate, str(datetime.now())) print(' Visited altered to : ',visitdate)