Update webstats_common.lua

This commit is contained in:
midoks
2022-10-17 13:45:21 +08:00
parent 7b2a011b6a
commit 42bf5edd1f
+3 -1
View File
@@ -101,6 +101,8 @@ function _M.cron(self)
status, errorString = db:exec(update_sql)
self:write_update_day(input_sn)
end
db:exec([[BEGIN TRANSACTION]])
end
end
@@ -134,7 +136,7 @@ function _M.cron(self)
return true
end
db:exec([[BEGIN TRANSACTION]])
local local_stmt2 = db:prepare[[INSERT INTO web_logs(
time, ip, domain, server_name, method, status_code, uri, body_length,