all repos — honk @ c2932024935f705b0fc1ad03c1005141a0a8a2eb

my fork of honk

load donks for chonks
Ted Unangst tedu@tedunangst.com
Fri, 15 May 2020 00:18:50 -0400
commit

c2932024935f705b0fc1ad03c1005141a0a8a2eb

parent

1e53f94620a8e0142b842bac9cfc113f5d90b7e3

1 files changed, 3 insertions(+), 0 deletions(-)

jump to
M database.godatabase.go

@@ -546,6 +546,7 @@ return nil

} defer rows.Close() chonks := make(map[string][]*Chonk) + var allchonks []*Chonk for rows.Next() { ch := new(Chonk) var dt string

@@ -556,7 +557,9 @@ continue

} ch.Date, _ = time.Parse(dbtimeformat, dt) chonks[ch.Target] = append(chonks[ch.Target], ch) + allchonks = append(allchonks, ch) } + donksforchonks(allchonks) return chonks }