preserve threads we've participated in
Ted Unangst tedu@tedunangst.com
Sun, 02 Jun 2019 20:52:16 -0400
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
honk.go
→
honk.go
@@ -1342,8 +1342,8 @@ doordie(db, "delete from honks where userid = ? and convoy = ?", userid, t)
} } expdate := time.Now().UTC().Add(-30 * 24 * time.Hour).Format(dbtimeformat) - doordie(db, "delete from donks where honkid in (select honkid from honks where dt < ? and whofore = 0)", expdate) - doordie(db, "delete from honks where dt < ? and whofore = 0", expdate) + doordie(db, "delete from donks where honkid in (select honkid from honks where dt < ? and whofore = 0 and convoy not in (select convoy from honks where whofore = 2 or whofore = 3))", expdate) + doordie(db, "delete from honks where dt < ? and whofore = 0 and convoy not in (select convoy from honks where whofore = 2 or whofore = 3)", expdate) doordie(db, "delete from files where fileid not in (select fileid from donks)") }