You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
317 B
14 lines
317 B
5 years ago
|
namespace :video do
|
||
|
desc "get video play data"
|
||
|
task :data => :environment do
|
||
|
start_time = [Time.utc(2019,8,19,0,0,0), Time.utc(2019,11,10,0,0,0)]
|
||
|
end_time = [Time.utc(2019,11,09,23,59,59), Time.utc(2020,2,6,23,59,59)]
|
||
|
|
||
|
Video.all.each do |video|
|
||
|
vv = 0
|
||
|
play_duration = 0
|
||
|
|
||
|
|
||
|
end
|
||
|
end
|
||
|
end
|