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):
|
def __init__(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def _shift_clips(clips):
|
def _shift_clips(self, clips):
|
||||||
index = random.randrange(len(clips))
|
index = random.randrange(len(clips))
|
||||||
return clips[index:] + clips[:index - 1]
|
return clips[index:] + clips[:index - 1]
|
||||||
|
|
||||||
def get_videos(user):
|
def get_videos(self, user):
|
||||||
products = []
|
products = []
|
||||||
for event in user['events']:
|
for event in user['events']:
|
||||||
if 'product' in event['data']:
|
if 'product' in event['data']:
|
||||||
|
|
Loading…
Reference in a new issue