From e6f82478ea6e2bb25b328db7a785481167b9481f Mon Sep 17 00:00:00 2001 From: spla Date: Tue, 31 Aug 2021 11:11:24 +0200 Subject: [PATCH] Added image description to graphs --- fediverse.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fediverse.py b/fediverse.py index 9a2f6df..50cdb48 100644 --- a/fediverse.py +++ b/fediverse.py @@ -14,7 +14,7 @@ import aiohttp import asyncio import socket import matplotlib.pyplot as plt - +import pdb plt.style.use('seaborn') start_time = time.time() @@ -919,8 +919,8 @@ if __name__ == '__main__': print("Tooting...") print(toot_text) - servers_image_id = mastodon.media_post('servers.png', "image/png").id + servers_image_id = mastodon.media_post('servers.png', "image/png", description='servers graph').id - users_image_id = mastodon.media_post('users.png', "image/png").id + users_image_id = mastodon.media_post('users.png', "image/png", description='users graph').id mastodon.status_post(toot_text, in_reply_to_id=None, media_ids={servers_image_id, users_image_id})