diff options
author | Zac <[email protected]> | 2017-07-11 22:53:01 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2017-07-11 22:53:01 -0400 |
commit | 71791ccd1d08304dbec8b07f820da1a25365fe8d (patch) | |
tree | 3b457dbd4e003e0e941cdf4c7f12f3c49c53dab6 | |
parent | c5d6a8c2287ea445f8610ded2a723675479f2a04 (diff) | |
download | mastodon.py-71791ccd1d08304dbec8b07f820da1a25365fe8d.tar.gz |
fixed incorrect rate limit amount
related area in Mastodon code: https://github.com/tootsuite/mastodon/blob/056b5ed72f6d980bceeb49eb249b8365fe8fce66/config/initializers/rack_attack.rb#L12
-rw-r--r-- | mastodon/Mastodon.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py index 26294f7..7203c8a 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py | |||
@@ -107,9 +107,9 @@ class Mastodon: | |||
107 | self._token_expired = datetime.datetime.now() | 107 | self._token_expired = datetime.datetime.now() |
108 | self._refresh_token = None | 108 | self._refresh_token = None |
109 | 109 | ||
110 | self.ratelimit_limit = 150 | 110 | self.ratelimit_limit = 300 |
111 | self.ratelimit_reset = time.time() | 111 | self.ratelimit_reset = time.time() |
112 | self.ratelimit_remaining = 150 | 112 | self.ratelimit_remaining = 300 |
113 | self.ratelimit_lastcall = time.time() | 113 | self.ratelimit_lastcall = time.time() |
114 | self.ratelimit_pacefactor = ratelimit_pacefactor | 114 | self.ratelimit_pacefactor = ratelimit_pacefactor |
115 | 115 | ||