From 58b11fcbeb3aab6fe65b6f87644efe92417a1b29 Mon Sep 17 00:00:00 2001 From: Brandon Rozek Date: Sun, 15 May 2022 11:20:09 -0400 Subject: [PATCH] Strip out highly dynamic account information from toot to lower the number of times toot files update. --- refreshtoots_v2.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/refreshtoots_v2.py b/refreshtoots_v2.py index b17538a..3b0f48d 100755 --- a/refreshtoots_v2.py +++ b/refreshtoots_v2.py @@ -120,6 +120,18 @@ def reformat_toot(toot_json): toot_date = toot_json['created_at'] del toot_json['created_at'] toot_json['date'] = toot_date + # Strip out highly dynamic account information + del toot_json['account']['locked'] + del toot_json['account']['bot'] + del toot_json['account']['discoverable'] + del toot_json['account']['group'] + del toot_json['account']['created_at'] + del toot_json['account']['note'] + del toot_json['account']['followers_count'] + del toot_json['account']['following_count'] + del toot_json['account']['statuses_count'] + del toot_json['account']['last_status_at'] + def create_toot(toot_json): """