More rate limit fixes

This commit is contained in:
Jeremy Zhang
2017-04-06 02:48:01 +00:00
parent f0c326f686
commit 347f001993
2 changed files with 2 additions and 2 deletions

View File

@ -159,7 +159,7 @@ def get_online_embed_users(guild_id):
@api.route("/fetch", methods=["GET"])
@valid_session_required(api=True)
@rate_limiter.limit("1 per 5 second", key_func = channel_ratelimit_key)
@rate_limiter.limit("1 per 2 second", key_func = channel_ratelimit_key)
def fetch():
guild_id = request.args.get("guild_id")
channel_id = request.args.get('channel_id')