all repos — honk @ 7f5170b7501357f1df2374aa3aa22ff85380272d

my fork of honk

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
commit

7f5170b7501357f1df2374aa3aa22ff85380272d

parent

6ee82b3133d0ed1c5876c6fc3178da7985caa61d

1 files changed, 4 insertions(+), 4 deletions(-)

jump to
M honk.gohonk.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) }