aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac <[email protected]>2017-07-11 22:53:01 -0400
committerGitHub <[email protected]>2017-07-11 22:53:01 -0400
commit71791ccd1d08304dbec8b07f820da1a25365fe8d (patch)
tree3b457dbd4e003e0e941cdf4c7f12f3c49c53dab6 /mastodon
parentc5d6a8c2287ea445f8610ded2a723675479f2a04 (diff)
downloadmastodon.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
Diffstat (limited to 'mastodon')
-rw-r--r--mastodon/Mastodon.py4
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
Powered by cgit v1.2.3 (git 2.41.0)