mirror of https://git.sr.ht/~sircmpwn/hub.sr.ht
webhooks: fix unbound variable
Missed this one in a previous commit.
This commit is contained in:
parent
6fb2029120
commit
207a992905
|
@ -47,6 +47,7 @@ def git_user(user_id):
|
|||
repos = (SourceRepo.query
|
||||
.filter(SourceRepo.remote_id == payload["id"])
|
||||
.filter(SourceRepo.repo_type == RepoType.git))
|
||||
summary = ""
|
||||
for repo in repos:
|
||||
if repo.project.summary_repo_id == repo.id:
|
||||
repo.project.summary_repo = None
|
||||
|
|
Loading…
Reference in New Issue