1
0
Fork 0

Fix contrib save query indentation

This commit is contained in:
Gregory Eremin 2015-03-20 21:18:20 +07:00
parent ede2707070
commit d31bbabcc7
1 changed files with 3 additions and 1 deletions

View File

@ -20,6 +20,8 @@ func (c *Contrib) Save() {
insert into contribs (week, org_id, repo_id, user_id, commits, additions, deletions) insert into contribs (week, org_id, repo_id, user_id, commits, additions, deletions)
values (:week, :org_id, :repo_id, :user_id, :commits, :additions, :deletions) values (:week, :org_id, :repo_id, :user_id, :commits, :additions, :deletions)
on duplicate key update on duplicate key update
commits=values(commits), additions=values(additions), deletions=values(deletions) commits = values(commits),
additions = values(additions),
deletions = values(deletions)
`, c) `, c)
} }