Removed debug prints
This commit is contained in:
parent
f713535be3
commit
99f6637a23
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user