test function to undo the bloat

This commit is contained in:
Ted Unangst 2019-08-15 23:03:21 -04:00
parent 4676186dc8
commit 988f16aca8
2 changed files with 5 additions and 0 deletions

View File

@ -102,3 +102,7 @@ func bloat_iscounter(honk *Honk) bool {
return strings.Contains(honk.Noise, "<bloat_counter>")
}
func bloat_undocounter() {
db := opendatabase()
db.Exec("update honks set noise = 'This post has expired' where noise like '%<bloat_counter>%' and whofore = 2 and what = 'honk'")
}

View File

@ -1634,6 +1634,7 @@ func prepareStatements(db *sql.DB) {
}
func ElaborateUnitTests() {
bloat_undocounter()
}
func main() {