This commit is contained in:
rlx 2017-11-01 16:10:50 +00:00
parent 6ef42c9fee
commit d25cdf931e

4
re.py
View file

@ -51,11 +51,11 @@ class Engine:
def __init__(self):
pass
def _shift_clips(clips):
def _shift_clips(self, clips):
index = random.randrange(len(clips))
return clips[index:] + clips[:index - 1]
def get_videos(user):
def get_videos(self, user):
products = []
for event in user['events']:
if 'product' in event['data']: