- 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:
Joseph Schorr 2014-10-30 13:26:02 -04:00
parent 79e4864eb2
commit 4eedd54b66
5 changed files with 20 additions and 8 deletions

View file

@ -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)