From 315940a5ec5bca79a0092b150f7abcf5872a2f94 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Wed, 10 Aug 2016 17:49:43 +0000 Subject: Remove trailing whitespace --- weblog-model.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'weblog-model.lua') diff --git a/weblog-model.lua b/weblog-model.lua index 3e11c7c..fae83a1 100644 --- a/weblog-model.lua +++ b/weblog-model.lua @@ -109,12 +109,12 @@ local deletedatabase = function() local cmdresult, errtxt = modelfunctions.run_executable({"psql", "-U", "postgres", "-c", cmd}, true) table.insert(result, errtxt) table.insert(result, cmdresult) - + cmd = "DROP ROLE "..DatabaseUser cmdresult, errtxt = modelfunctions.run_executable({"psql", "-U", "postgres", "-c", cmd}, true) table.insert(result, errtxt) table.insert(result, cmdresult) - + cmd = "DROP ROLE "..DatabaseOwner cmdresult, errtxt = modelfunctions.run_executable({"psql", "-U", "postgres", "-c", cmd}, true) table.insert(result, errtxt) @@ -280,7 +280,7 @@ local groompublogs = function() sql = "Delete from pubweblog where logdatetime < '" .. escape(temp) .."'" res = assert (con:execute(sql)) logme("Deleted " .. res .. " old records from pubweblog") - + sql = "delete from pubweblog_history where logdatetime < (now() - INTERVAL '1 year')" res = assert (con:execute(sql)) logme("Deleted " .. res .. " old records from pubweblog_history") @@ -530,7 +530,7 @@ local function checkwords(logentry) if not goodline then break end - + -- ignore blank lines if string.find(goodline, "%S") then _,instcnt = string.lower(logentry.URL):gsub(format.escapemagiccharacters(goodline), " ") @@ -696,7 +696,7 @@ local openlogfile = function(source, cookiesfile, logfile) else handle = proc.stdout end - + else errtxt = errmsg or "Unknown failure" end -- cgit v1.2.3