not sure what the right data range is, but make it a week
Ted Unangst tedu@tedunangst.com
Sun, 05 May 2019 13:54:13 -0400
1 files changed,
4 insertions(+),
4 deletions(-)
jump to
M
honk.go
→
honk.go
@@ -637,22 +637,22 @@ return &h
} func getpublichonks() []*Honk { - dt := time.Now().UTC().Add(-2 * 24 * time.Hour).Format(dbtimeformat) + dt := time.Now().UTC().Add(-7 * 24 * time.Hour).Format(dbtimeformat) rows, err := stmtPublicHonks.Query(dt) return getsomehonks(rows, err) } func gethonksbyuser(name string) []*Honk { - dt := time.Now().UTC().Add(-2 * 24 * time.Hour).Format(dbtimeformat) + dt := time.Now().UTC().Add(-7 * 24 * time.Hour).Format(dbtimeformat) rows, err := stmtUserHonks.Query(name, dt) return getsomehonks(rows, err) } func gethonksforuser(userid int64) []*Honk { - dt := time.Now().UTC().Add(-2 * 24 * time.Hour).Format(dbtimeformat) + dt := time.Now().UTC().Add(-7 * 24 * time.Hour).Format(dbtimeformat) rows, err := stmtHonksForUser.Query(userid, dt, userid) return getsomehonks(rows, err) } func gethonksforme(userid int64) []*Honk { - dt := time.Now().UTC().Add(-4 * 24 * time.Hour).Format(dbtimeformat) + dt := time.Now().UTC().Add(-7 * 24 * time.Hour).Format(dbtimeformat) rows, err := stmtHonksForMe.Query(userid, dt, userid) return getsomehonks(rows, err) }