allow None in repoInfo for backwards compat
This commit is contained in:
parent
a204491e2b
commit
28ba9f45f6
1 changed files with 1 additions and 1 deletions
|
|
@ -3021,7 +3021,7 @@ def repo_info(repo_id, strict=False):
|
||||||
:returns: dict (id, state, create_event, creation_time, tag_id, tag_name,
|
:returns: dict (id, state, create_event, creation_time, tag_id, tag_name,
|
||||||
dist)
|
dist)
|
||||||
"""
|
"""
|
||||||
repo_id = convert_value(repo_id, cast=int)
|
repo_id = convert_value(repo_id, cast=int, none_allowed=True)
|
||||||
clauses = [['id', '=', repo_id]]
|
clauses = [['id', '=', repo_id]]
|
||||||
return repos.RepoQuery(clauses, fields='**').executeOne(strict=strict)
|
return repos.RepoQuery(clauses, fields='**').executeOne(strict=strict)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue