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
|
if not body then error(code) end
|
||||||
|
|
||||||
local data = json.decode(body)
|
local data = json.decode(body)
|
||||||
print(require'pretty'(data))
|
|
||||||
|
|
||||||
local memes = {}
|
local memes = {}
|
||||||
for _, meme_data in pairs(data.data.children) do
|
for _, meme_data in pairs(data.data.children) do
|
||||||
meme_data = meme_data.data
|
meme_data = meme_data.data
|
||||||
local success = filter(meme_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
|
end
|
||||||
|
|
||||||
return memes
|
return memes
|
||||||
|
|
Loading…
Reference in New Issue
Block a user