fix
This commit is contained in:
parent
6ef42c9fee
commit
d25cdf931e
1 changed files with 2 additions and 2 deletions
4
re.py
4
re.py
|
@ -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']:
|
||||
|
|
Loading…
Add table
Reference in a new issue