完善contest权限控制

This commit is contained in:
zema1 committed 2017-10-27 18:36:29 +08:00
1 parent b694000ab9
commit 728373a5ff
19 files changed
+219 -162

No files matched your search

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