webhooks: fix unbound variable

Missed this one in a previous commit.
This commit is contained in:
Drew DeVault 2021-08-23 16:59:57 +02:00
parent 6fb2029120
commit 207a992905
1 changed files with 1 additions and 0 deletions

View File

@ -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