@@ -54,9 +54,7 @@ def time_calc(input_time):
54
54
55
55
# Publicly available data no header required
56
56
MAST_SOURCE = (
57
- "https://mastodon.cloud/api/v1/accounts/"
58
- + Mastodon_UserID
59
- + "/statuses?limit=1"
57
+ "https://mastodon.cloud/api/v1/accounts/" + Mastodon_UserID + "/statuses?limit=1"
60
58
)
61
59
62
60
# Connect to Wi-Fi
@@ -91,16 +89,16 @@ def time_calc(input_time):
91
89
if debug_mastodon_full_response :
92
90
print ("Full API GET URL: " , MAST_SOURCE )
93
91
print (mastodon_json )
94
- mastodon_userid = mastodon_json [' account' ][ 'id' ]
92
+ mastodon_userid = mastodon_json [" account" ][ "id" ]
95
93
print ("User ID: " , mastodon_userid )
96
-
97
- mastodon_username = mastodon_json [' account' ][ ' display_name' ]
94
+
95
+ mastodon_username = mastodon_json [" account" ][ " display_name" ]
98
96
print ("Name: " , mastodon_username )
99
- mastodon_join_date = mastodon_json [' account' ][ ' created_at' ]
97
+ mastodon_join_date = mastodon_json [" account" ][ " created_at" ]
100
98
print ("Member Since: " , mastodon_join_date )
101
- mastodon_toot_count = mastodon_json [' account' ][ ' statuses_count' ]
99
+ mastodon_toot_count = mastodon_json [" account" ][ " statuses_count" ]
102
100
print ("Toots: " , mastodon_toot_count )
103
- mastodon_follower_count = mastodon_json [' account' ][ ' followers_count' ]
101
+ mastodon_follower_count = mastodon_json [" account" ][ " followers_count" ]
104
102
print ("Followers: " , mastodon_follower_count )
105
103
print ("Monotonic: " , time .monotonic ())
106
104
0 commit comments