- Make usage language more accurate by stating "repositories"
- Have usage counter be based on a 4 weeks TTL - Add a simple usage counter breakage test
This commit is contained in:
parent
79e4864eb2
commit
4eedd54b66
5 changed files with 20 additions and 8 deletions
|
@ -64,7 +64,7 @@ class UsageInformation(ApiResource):
|
|||
if SuperUserPermission().can():
|
||||
return {
|
||||
'usage': model.get_repository_usage(),
|
||||
'allowed': app.config.get('MAXIMUM_CONTAINER_USAGE', 20)
|
||||
'allowed': app.config.get('MAXIMUM_REPOSITORY_USAGE', 20)
|
||||
}
|
||||
|
||||
abort(403)
|
||||
|
|
Reference in a new issue