mirror of
https://github.com/samsonjs/retrogit.git
synced 2026-04-27 15:07:43 +00:00
Fix digest end date to not overlap with the next digest period.
Apparently the since/until repository timestamp limits denote a closed interval, so commits made at midnight would appear twice. Switch to setting the end date to being one second earlier.
This commit is contained in:
parent
112ddb2b02
commit
012d736e25
1 changed files with 1 additions and 1 deletions
|
|
@ -194,7 +194,7 @@ func newDigest(c appengine.Context, githubClient *github.Client, account *Accoun
|
||||||
if account.Frequency == "weekly" {
|
if account.Frequency == "weekly" {
|
||||||
daysInDigest = 7
|
daysInDigest = 7
|
||||||
}
|
}
|
||||||
digestEndTime := digestStartTime.AddDate(0, 0, daysInDigest)
|
digestEndTime := digestStartTime.AddDate(0, 0, daysInDigest).Add(-time.Second)
|
||||||
|
|
||||||
// Only look at repos that may have activity in the digest interval.
|
// Only look at repos that may have activity in the digest interval.
|
||||||
var intervalRepos []*Repo
|
var intervalRepos []*Repo
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue