From 0d6490faa99fcfc09f581b8e39de6ecc90e91f67 Mon Sep 17 00:00:00 2001 From: hfte Date: Sat, 16 May 2020 15:47:49 +0200 Subject: [PATCH] typo fixes --- .gitignore | 5 ++++- mastaface.py | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index dd1e9da..7ecb911 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,7 @@ config.json database.pkl tmp.jpg -vendor/__pycache__ \ No newline at end of file +vendor/__pycache__ +*.log +untitled* +configcopy.json \ No newline at end of file diff --git a/mastaface.py b/mastaface.py index 2813ec9..cf4cc5e 100644 --- a/mastaface.py +++ b/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