twitter #2

Merged
s434708 merged 50 commits from twitter into master 2022-06-09 19:42:33 +02:00
Showing only changes of commit 7a2f9f832d - Show all commits

View File

@ -68,9 +68,9 @@ def add_twitter_account():
dot_index = trimmed_text.rfind(".") dot_index = trimmed_text.rfind(".")
space_index = trimmed_text.rfind(" ") space_index = trimmed_text.rfind(" ")
if dot_index > 0: if dot_index > 0:
tweet_text = trimmed_text[:dot_index] tweet_text = trimmed_text[:dot_index].capitalize()
else: else:
tweet_text = trimmed_text[:space_index] tweet_text = trimmed_text[:space_index].capitalize()
# create post on twitter # create post on twitter
oauth = OAuth1Session( oauth = OAuth1Session(