Update projects on git commit events

This commit is contained in:
Drew DeVault 2020-04-29 12:23:31 -04:00
parent 841af67399
commit caa317cf5e
1 changed files with 1 additions and 0 deletions

View File

@ -88,6 +88,7 @@ def git_repo(repo_id):
f"<a href='{pusher_url}'>{pusher_name}</a> pushed to " +
f"<a href='{repo.url()}'>{repo_name}</a> git")
repo.project.updated = datetime.utcnow()
db.session.add(event)
db.session.commit()
return "Thanks!"