Add 2 day TTL to page tokens
This commit is contained in:
parent
b4bddacedb
commit
335c8eb3a9
3 changed files with 9 additions and 6 deletions
|
@ -118,7 +118,7 @@ class RepositoryLogs(RepositoryParamResource):
|
|||
@query_param('endtime', 'Latest time to which to get logs (%m/%d/%Y %Z)', type=str)
|
||||
@query_param('page', 'The page number for the logs', type=int, default=1)
|
||||
@page_support
|
||||
def get(self, args, page_token, namespace, repository):
|
||||
def get(self, args, namespace, repository, page_token):
|
||||
""" List the logs for the specified repository. """
|
||||
repo = model.repository.get_repository(namespace, repository)
|
||||
if not repo:
|
||||
|
@ -164,7 +164,7 @@ class OrgLogs(ApiResource):
|
|||
@query_param('page', 'The page number for the logs', type=int, default=1)
|
||||
@page_support
|
||||
@require_scope(scopes.ORG_ADMIN)
|
||||
def get(self, args, page_token, orgname):
|
||||
def get(self, args, orgname, page_token):
|
||||
""" List the logs for the specified organization. """
|
||||
permission = AdministerOrganizationPermission(orgname)
|
||||
if permission.can():
|
||||
|
|
Reference in a new issue