diff --git a/database.go b/database.go index dacca18..6d7b5f6 100644 --- a/database.go +++ b/database.go @@ -36,7 +36,7 @@ import ( "humungus.tedunangst.com/r/webs/mz" ) -var honkwindow time.Duration = 7 * 24 * time.Hour +var honkwindow time.Duration = 7 //go:embed schema.sql var sqlSchema string diff --git a/main.go b/main.go index d5839ec..e2d42ef 100644 --- a/main.go +++ b/main.go @@ -112,6 +112,8 @@ func main() { getconfig("devel", &develMode) getconfig("fasttimeout", &fastTimeout) getconfig("slowtimeout", &slowTimeout) + getconfig("honkwindow", &honkwindow) + honkwindow *= 24 * time.Hour getconfig("signgets", &signGets) prepareStatements(db) switch cmd {