mirror of https://git.sr.ht/~sircmpwn/hub.sr.ht
Fix Hg repository creation visibility assignment
This commit is contained in:
parent
413bf32989
commit
688195adb4
|
@ -173,7 +173,7 @@ def hg_new_POST(owner, project_name):
|
|||
repo.name = hg_repo["name"]
|
||||
repo.description = hg_repo["description"]
|
||||
repo.repo_type = RepoType.hg
|
||||
repo.visibility = Visibility(repo["visibility"])
|
||||
repo.visibility = Visibility(hg_repo["visibility"])
|
||||
db.session.add(repo)
|
||||
db.session.flush()
|
||||
|
||||
|
|
Loading…
Reference in New Issue