Remove debugging prints

This commit is contained in:
Robin Malley 2021-01-16 21:02:20 +00:00
parent 2c732db22d
commit 18d1f3ea87
2 changed files with 2 additions and 3 deletions

View File

@ -34,7 +34,6 @@ local function edit_post(req)
local pasteas = assert(http_argument_get_string(req,"pasteas"))
local markup = assert(http_argument_get_string(req,"markup"))
local unlisted = http_argument_get_string(req,"unlisted") == "on"
print("unlisted was:",unlisted)
local tags_str = http_argument_get_string(req,"tags")
stmnt_author_of:bind_names{
id = storyid

View File

@ -44,7 +44,7 @@ local function get_site_home(req, loggedin)
}
end
local function get_author_home(req)
print("Looking at author home...")
--print("Looking at author home...")
local host = http_request_get_host(req)
local subdomain = host:match("([^\\.]+)")
stmnt_author_bio:bind_names{author=subdomain}
@ -64,7 +64,7 @@ local function get_author_home(req)
stmnt_author:bind_names{author=subdomain}
local stories = {}
for id, title, time, hits, unlisted, hash in util.sql_rows(stmnt_author) do
print("Looking at:",id,title,time,hits,unlisted)
--print("Looking at:",id,title,time,hits,unlisted)
if unlisted == 1 and author == subdomain then
local url = util.encode_id(id) .. "?pwd=" .. util.encode_unlisted(hash)
table.insert(stories,{