Added image description to graphs

This commit is contained in:
spla 2021-08-31 11:11:24 +02:00
pare 7c75ca678c
commit e6f82478ea

Veure arxiu

@ -14,7 +14,7 @@ import aiohttp
import asyncio import asyncio
import socket import socket
import matplotlib.pyplot as plt import matplotlib.pyplot as plt
import pdb
plt.style.use('seaborn') plt.style.use('seaborn')
start_time = time.time() start_time = time.time()
@ -919,8 +919,8 @@ if __name__ == '__main__':
print("Tooting...") print("Tooting...")
print(toot_text) 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}) mastodon.status_post(toot_text, in_reply_to_id=None, media_ids={servers_image_id, users_image_id})