1
0
Fork 0

Config example

This commit is contained in:
Gregory Eremin 2015-03-05 14:32:47 +07:00
parent dce771f9ea
commit dce4c5e1d1
2 changed files with 8 additions and 2 deletions

5
config.example.json Normal file
View File

@ -0,0 +1,5 @@
{
"github_client_id": "XXXXXXXXXXXXXXXXXXXX",
"github_client_secret": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"github_redirect_uri": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
}

View File

@ -29,7 +29,7 @@ func SyncContrib(t SyncContribTask) {
continue
}
res = append(res, &db.Contrib{
contrib := &db.Contrib{
Week: week.Week.Time.Unix(),
Author: *c.Author.Login,
Owner: t.Owner,
@ -37,7 +37,8 @@ func SyncContrib(t SyncContribTask) {
Commits: *week.Commits,
Additions: *week.Additions,
Deletions: *week.Deletions,
})
}
contrib.Save()
}
}
}