Skip to content

Commit

Permalink
Merge pull request #1947 from chaoss/augur-new-pr-reviewers
Browse files Browse the repository at this point in the history
Merge update query
  • Loading branch information
ABrain7710 committed Aug 11, 2022
2 parents 6b1ed5a + 3c62f02 commit 593a518
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion augur/tasks/git/facade_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,14 @@ def link_commits_to_contributor(contributorQueue):
"cntrb_id": cntrb["cntrb_id"]
}

query = s.sql.text("""UPDATE commits SET cmt_ght_author_id=:cntrb_id WHERE cmt_committer_email=:cntrb_email""")
query = s.sql.text("""
UPDATE commits
SET cmt_ght_author_id=:cntrb_id
WHERE cmt_committer_email=:cntrb_email
OR cmt_author_raw_email=:cntrb_email
OR cmt_author_email=:cntrb_email
OR cmt_committer_raw_email=:cntrb_email
""")

engine.execute(query, **data)

Expand Down

0 comments on commit 593a518

Please sign in to comment.