diff options
author | Lorenz Diener <[email protected]> | 2018-07-30 15:35:36 +0200 |
---|---|---|
committer | Lorenz Diener <[email protected]> | 2018-07-30 15:35:36 +0200 |
commit | f864bea4e501202b16885304ba298a5a9812d0bb (patch) | |
tree | 7c124b018f0c2d19d4a52c2f6b3c63c65db597f5 /docs | |
parent | d3594572bbde704585d94cda06ae1c8deac0bf8b (diff) | |
download | mastodon.py-f864bea4e501202b16885304ba298a5a9812d0bb.tar.gz |
Document hashtag history dicts
Diffstat (limited to 'docs')
-rw-r--r-- | docs/index.rst | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/docs/index.rst b/docs/index.rst index ae2eedb..c82b691 100644 --- a/docs/index.rst +++ b/docs/index.rst | |||
@@ -299,8 +299,21 @@ Hashtag dicts | |||
299 | { | 299 | { |
300 | 'name': # Hashtag name (not including the #) | 300 | 'name': # Hashtag name (not including the #) |
301 | 'url': # Hashtag URL (can be remote) | 301 | 'url': # Hashtag URL (can be remote) |
302 | 'history': # List of usage history dicts for up to 7 days. Not present in statuses. | ||
302 | } | 303 | } |
303 | 304 | ||
305 | Hashtag usage history dicts | ||
306 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
307 | .. _hashtag usage history dict: | ||
308 | |||
309 | .. code-block:: python | ||
310 | |||
311 | { | ||
312 | 'day': # Date of the day this history dict is for | ||
313 | 'uses': # Number of statuses using this hashtag on that day | ||
314 | 'accounts': # Number of accounts using this hashtag in at least one status on that day | ||
315 | } | ||
316 | |||
304 | Emoji dicts | 317 | Emoji dicts |
305 | ~~~~~~~~~~~ | 318 | ~~~~~~~~~~~ |
306 | .. _emoji dict: | 319 | .. _emoji dict: |