forkeado de spla/fediverse
Added image description to graphs
This commit is contained in:
pare
7c75ca678c
commit
e6f82478ea
S'han modificat 1 arxius amb 3 adicions i 3 eliminacions
|
@ -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})
|
||||
|
|
Loading…
Referencia en una nova incidència