load donks for chonks
This commit is contained in:
parent
5acf6ef5ce
commit
6be05df143
|
@ -546,6 +546,7 @@ func loadchatter(userid int64) map[string][]*Chonk {
|
||||||
}
|
}
|
||||||
defer rows.Close()
|
defer rows.Close()
|
||||||
chonks := make(map[string][]*Chonk)
|
chonks := make(map[string][]*Chonk)
|
||||||
|
var allchonks []*Chonk
|
||||||
for rows.Next() {
|
for rows.Next() {
|
||||||
ch := new(Chonk)
|
ch := new(Chonk)
|
||||||
var dt string
|
var dt string
|
||||||
|
@ -556,7 +557,9 @@ func loadchatter(userid int64) map[string][]*Chonk {
|
||||||
}
|
}
|
||||||
ch.Date, _ = time.Parse(dbtimeformat, dt)
|
ch.Date, _ = time.Parse(dbtimeformat, dt)
|
||||||
chonks[ch.Target] = append(chonks[ch.Target], ch)
|
chonks[ch.Target] = append(chonks[ch.Target], ch)
|
||||||
|
allchonks = append(allchonks, ch)
|
||||||
}
|
}
|
||||||
|
donksforchonks(allchonks)
|
||||||
return chonks
|
return chonks
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue