load donks for chonks
Ted Unangst tedu@tedunangst.com
Fri, 15 May 2020 00:18:50 -0400
1 files changed,
3 insertions(+),
0 deletions(-)
jump to
M
database.go
→
database.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 }