Commit c1540fcb authored by Ted Trask's avatar Ted Trask

Bump version to 0.10.4

parent b60a647c
APP_NAME=weblog APP_NAME=weblog
PACKAGE=acf-$(APP_NAME) PACKAGE=acf-$(APP_NAME)
VERSION=0.10.3 VERSION=0.10.4
CRON_FILE=weblogimport CRON_FILE=weblogimport
......
...@@ -251,20 +251,21 @@ end ...@@ -251,20 +251,21 @@ end
-- Delete useage stats from more than a year ago -- Delete useage stats from more than a year ago
local groomusagestat = function() local groomusagestat = function()
local res = assert (con:execute("delete from usagestat where " .. -- local res = assert (con:execute("delete from usagestat where " ..
"date < (now() - INTERVAL '1 year')")) -- "date < (now() - INTERVAL '1 year')"))
logme("removed " .. res .. " old usage status lines") -- logme("removed " .. res .. " old usage status lines")
end end
-- Delete history log information from more than a month ago -- Delete history log information from more than a month ago
local groomdbhistlog = function() local groomdbhistlog = function()
local res = assert (con:execute("delete from dbhistlog where " .. -- local res = assert (con:execute("delete from dbhistlog where " ..
"logdatetime < (now() - INTERVAL '1 month')")) -- "logdatetime < (now() - INTERVAL '1 month')"))
logme("removed " .. res .. " old dbhistlog lines") -- logme("removed " .. res .. " old dbhistlog lines")
end end
-- Delete old junk from pub tables -- Delete old junk from pub tables
local groompublogs = function() local groompublogs = function()
--[[
local purgedays = config.purgedays or 30 local purgedays = config.purgedays or 30
local now = os.time() local now = os.time()
...@@ -284,6 +285,7 @@ local groompublogs = function() ...@@ -284,6 +285,7 @@ local groompublogs = function()
sql = "delete from pubweblog_history where logdatetime < (now() - INTERVAL '1 year')" sql = "delete from pubweblog_history where logdatetime < (now() - INTERVAL '1 year')"
res = assert (con:execute(sql)) res = assert (con:execute(sql))
logme("Deleted " .. res .. " old records from pubweblog_history") logme("Deleted " .. res .. " old records from pubweblog_history")
--]]
end end
local generatewhereclause = function(clientuserid, starttime, endtime, clientip, badyesno, deniedyesno, bypassyesno, score, urisearch, selected, sourcename) local generatewhereclause = function(clientuserid, starttime, endtime, clientip, badyesno, deniedyesno, bypassyesno, score, urisearch, selected, sourcename)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment