mirror of
https://github.com/Brandon-Rozek/website.git
synced 2024-11-24 17:16:30 -05:00
Strip out highly dynamic account information from toot to lower the number of times toot files update.
This commit is contained in:
parent
4a2fa9c5a0
commit
58b11fcbeb
1 changed files with 12 additions and 0 deletions
|
@ -120,6 +120,18 @@ def reformat_toot(toot_json):
|
||||||
toot_date = toot_json['created_at']
|
toot_date = toot_json['created_at']
|
||||||
del toot_json['created_at']
|
del toot_json['created_at']
|
||||||
toot_json['date'] = toot_date
|
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):
|
def create_toot(toot_json):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue