Removed debug prints

This commit is contained in:
jmaa 2018-08-08 16:26:23 +02:00
parent f713535be3
commit 99f6637a23

View File

@ -278,16 +278,12 @@ function internet.find_reddit_memes (subreddit, filter)
if not body then error(code) end
local data = json.decode(body)
print(require'pretty'(data))
local memes = {}
for _, meme_data in pairs(data.data.children) do
meme_data = meme_data.data
local success = filter(meme_data)
print(meme_data.title, meme_data.score, meme_data.created, success)
if success then
memes[#memes+1] = meme_data
end
if success then memes[#memes+1] = meme_data end
end
return memes