Upped upvote cap for memes from dankmark
This commit is contained in:
parent
99f6637a23
commit
6aff9133ed
|
@ -763,12 +763,15 @@ end
|
|||
--------------------------------------------------------------------------------
|
||||
-- Find memes from dankmark
|
||||
|
||||
local DANKMARK_MIN_SCORE = 60
|
||||
|
||||
function memes.generate_meme_report (subreddits, time_interval)
|
||||
assert(type(subreddits) == 'table' and #subreddits == 1)
|
||||
assert(type(time_interval) == 'table' and #time_interval == 2)
|
||||
|
||||
|
||||
local current_check_time = os.time()
|
||||
local new_memes = internet.find_reddit_memes(subreddits[1], function(t) return 35 <= t.score and time_interval[1] < t.created and t.created <= time_interval[2] end)
|
||||
local new_memes = internet.find_reddit_memes(subreddits[1], function(t) return DANKMARK_MIN_SCORE <= t.score and time_interval[1] < t.created and t.created <= time_interval[2] end)
|
||||
if #new_memes == 0 then return end
|
||||
|
||||
-- Find best meme
|
||||
|
|
Loading…
Reference in New Issue
Block a user