Select only a single token.
This commit is contained in:
parent
691be49817
commit
17f605a9ef
1 changed files with 1 additions and 1 deletions
|
@ -1816,7 +1816,7 @@ def get_repository_delegate_tokens(namespace_name, repository_name):
|
|||
|
||||
def get_repo_delegate_token(namespace_name, repository_name, code):
|
||||
repo_query = get_repository_delegate_tokens(namespace_name, repository_name)
|
||||
found = list(repo_query.where(AccessToken.code == code))
|
||||
found = list(repo_query.where(AccessToken.code == code).limit(1))
|
||||
|
||||
if found:
|
||||
return found[0]
|
||||
|
|
Reference in a new issue