Browse Source

typo fixes

master
hfte 2 years ago
parent
commit
0d6490faa9
  1. 5
      .gitignore
  2. 4
      mastaface.py

5
.gitignore

@ -1,4 +1,7 @@
config.json
database.pkl
tmp.jpg
vendor/__pycache__
vendor/__pycache__
*.log
untitled*
configcopy.json

4
mastaface.py

@ -27,7 +27,7 @@ from facebook_scraper import get_posts
from mastodon import Mastodon
from vendor import split_tweet
logging.basicConfig(filename='mastaface.log',level=logging.DEBUG)
logging.basicConfig(filename='mastaface.log',level=logging.ERROR)
# Global variables
database_filename = 'database.pkl'
@ -114,7 +114,7 @@ for bridge in config['bridges']:
else:
statuses.append(mastodon.status_post(toot))
is_main_toot = False
logging.info('Bridged post' + str(post['post_id']) + ' to ', str(statuses[-1]['id']) )
logging.info('Bridged post' + str(post['post_id']) + ' to ' + str(statuses[-1]['id']) )
else:
statuses.append(mastodon.status_post(toot, in_reply_to_id = statuses[-1], visibility = 'unlisted'))
# After bridging was successfull update database of bridging history

Loading…
Cancel
Save