From e9d94961fa2574637b8a706875904229b571e052 Mon Sep 17 00:00:00 2001 From: Ching Date: Tue, 26 Mar 2024 17:19:16 +0800 Subject: [PATCH] fix: Fix logger.info format in mas2ff2.py --- mas2ff2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mas2ff2.py b/mas2ff2.py index f2467fe..464cfac 100644 --- a/mas2ff2.py +++ b/mas2ff2.py @@ -175,7 +175,7 @@ def run(instance, access_token, fanfou_cookie, fanfou_token): if str(status['id']) not in posted_ids: content = status['content'].replace('
', '\n') content = re.sub('<.*?>', '', content) - logger.info(status['id'], content) + logger.info(status['id'] + ' ' + content) post_fanfou(fanfou_cookie, fanfou_token, content, status['media_attachments']) with open('last_id.txt', 'a') as f: f.write(str(status['id']) + '\n')