twitter #2
@ -68,9 +68,9 @@ def add_twitter_account():
|
||||
dot_index = trimmed_text.rfind(".")
|
||||
space_index = trimmed_text.rfind(" ")
|
||||
if dot_index > 0:
|
||||
tweet_text = trimmed_text[:dot_index]
|
||||
tweet_text = trimmed_text[:dot_index].capitalize()
|
||||
else:
|
||||
tweet_text = trimmed_text[:space_index]
|
||||
tweet_text = trimmed_text[:space_index].capitalize()
|
||||
|
||||
# create post on twitter
|
||||
oauth = OAuth1Session(
|
||||
|
Loading…
Reference in New Issue
Block a user