封榜后管理员可以通过force_update查看最新rankings

This commit is contained in:
zema1
2017-12-03 15:36:31 +08:00
parent 0281555b39
commit 27a9b1144b
5 changed files with 18 additions and 15 deletions

View File

@@ -197,7 +197,7 @@ CELERY_ACCEPT_CONTENT = ["json"]
CELERY_TASK_SERIALIZER = "json"
# 用于限制用户恶意提交大量代码
TOKEN_BUCKET_DEFAULT_CAPACITY = 20
TOKEN_BUCKET_DEFAULT_CAPACITY = 10
# 单位:每分钟
TOKEN_BUCKET_FILL_RATE = 2