fixed city state tags

This commit is contained in:
Joe Steele
2024-08-04 11:40:14 -04:00
parent 552927bdb6
commit eae7276147
+9 -2
View File
@@ -283,8 +283,14 @@ def get_hastags(address, name, hashtype):
zip_code = addressdict[3] zip_code = addressdict[3]
except: except:
zip_code = '34787' zip_code = '34787'
try:
state = addressdict[2] state = addressdict[2]
except:
state = 'Florida'
try:
city = re.sub( r'[^a-zA-Z]','',addressdict[1]) city = re.sub( r'[^a-zA-Z]','',addressdict[1])
except:
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'
else: else:
@@ -866,7 +872,7 @@ def database_update_row(review_name, column_name, column_value, update_style, lo
raise raise
# else: # else:
local_outputs['postssession'].commit() local_outputs['postssession'].commit()
time.sleep(env.facebooksleep) #time.sleep(env.facebooksleep)
return True return True
################################################################################################## ##################################################################################################
@@ -1523,7 +1529,8 @@ def post_to_instagram2(title, content, headers, date, rating, address, picslist,
if "montage.mp4" in loop: if "montage.mp4" in loop:
outputmontage = loop outputmontage = loop
break break
if pathlib.Path.exists(outputmontage): pathoutputmontage = outputmontage[1:-1]
if pathlib.Path.exists(pathoutputmontage):
try: try:
duration, fps, (width, height)=with_moviepy(outputmontage) duration, fps, (width, height)=with_moviepy(outputmontage)
if duration < 60: if duration < 60: