all repos — honk @ 648a58494ee3347fd84c9202cd9d790a10ba5f38

my fork of honk

deal with fact split gives us empty strings
Ted Unangst tedu@tedunangst.com
Fri, 30 Aug 2019 01:08:15 -0400
commit

648a58494ee3347fd84c9202cd9d790a10ba5f38

parent

2d86a3c038308aaa2c0958ad5796a0a28ece273a

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

jump to
M honk.gohonk.go

@@ -847,7 +847,9 @@ }

h.Date, _ = time.Parse(dbtimeformat, dt) h.Audience = strings.Split(aud, " ") h.Public = !keepitquiet(h.Audience) - h.Onts = strings.Split(onts, " ") + if len(onts) > 0 { + h.Onts = strings.Split(onts, " ") + } return h }

@@ -866,7 +868,9 @@ }

h.Date, _ = time.Parse(dbtimeformat, dt) h.Audience = strings.Split(aud, " ") h.Public = !keepitquiet(h.Audience) - h.Onts = strings.Split(onts, " ") + if len(onts) > 0 { + h.Onts = strings.Split(onts, " ") + } return h }

@@ -940,7 +944,9 @@ }

h.Date, _ = time.Parse(dbtimeformat, dt) h.Audience = strings.Split(aud, " ") h.Public = !keepitquiet(h.Audience) - h.Onts = strings.Split(onts, " ") + if len(onts) > 0 { + h.Onts = strings.Split(onts, " ") + } honks = append(honks, &h) } rows.Close()