all repos — honk @ 1ad0df361f9ce2f9a3b4fcc1bab70a0584a06500

my fork of honk

update whofore after an update
Ted Unangst tedu@tedunangst.com
Wed, 20 Nov 2019 11:35:34 -0500
commit

1ad0df361f9ce2f9a3b4fcc1bab70a0584a06500

parent

0ed6b4b3d35e6693c8e99ea9e0acbf324c1b7749

2 files changed, 3 insertions(+), 2 deletions(-)

jump to
M activity.goactivity.go

@@ -853,6 +853,7 @@ prev.Date = xonk.Date

prev.Donks = xonk.Donks prev.Onts = xonk.Onts prev.Place = xonk.Place + prev.Whofore = xonk.Whofore updatehonk(prev) } }
M database.godatabase.go

@@ -493,7 +493,7 @@ }

err = deleteextras(tx, h.ID) if err == nil { - _, err = tx.Stmt(stmtUpdateHonk).Exec(h.Precis, h.Noise, h.Format, dt, h.ID) + _, err = tx.Stmt(stmtUpdateHonk).Exec(h.Precis, h.Noise, h.Format, h.Whofore, dt, h.ID) } if err == nil { err = saveextras(tx, h)

@@ -737,7 +737,7 @@ stmtSaveMeta = preparetodie(db, "insert into honkmeta (honkid, genus, json) values (?, ?, ?)")

stmtDeleteMeta = preparetodie(db, "delete from honkmeta where honkid = ? and genus <> ?") stmtSaveHonk = preparetodie(db, "insert into honks (userid, what, honker, xid, rid, dt, url, audience, noise, convoy, whofore, format, precis, oonker, flags) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)") stmtDeleteHonk = preparetodie(db, "delete from honks where honkid = ?") - stmtUpdateHonk = preparetodie(db, "update honks set precis = ?, noise = ?, format = ?, dt = ? where honkid = ?") + stmtUpdateHonk = preparetodie(db, "update honks set precis = ?, noise = ?, format = ?, whofore = ?, dt = ? where honkid = ?") stmtSaveOnt = preparetodie(db, "insert into onts (ontology, honkid) values (?, ?)") stmtDeleteOnts = preparetodie(db, "delete from onts where honkid = ?") stmtSaveDonk = preparetodie(db, "insert into donks (honkid, fileid) values (?, ?)")